If you are new to salesforce then you might face this issue, how to delete records from salesforce Object.

Alright, we will go step by step to get it done.

Step 1: Click on the gear icon on the top right side of the salesforce and select the developer console.

Step 2: Select the debug from the top menu and select Open Execute Anonymous window and paste the below code.

List<plan__c> planlist = [select id from plan__c];
delete planlist;

Check the checkbox open log and click on the Execute. It will show the result of above code in the debug log.

Here, in the above code, we are trying to delete all the records from the plan__C custom object.

Happy Coding!!