Showing posts with label execute anonymous window. Show all posts
Showing posts with label execute anonymous window. Show all posts

Wednesday, November 25, 2015

How to delete all records from custom object in salesforce

Go to Developer Console>Debug> Open execute anonymous window

Write the below code

List<sobject__c> objDelList= [SELECT Id FROM sobject__c];
delete objDelList;

Click on the button execute button

Note: Replace  sobject__c with original custom object API name