function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mel LisauMel Lisau 

How can i permanently delete custom objects from Salesforce?

I have custom objects in Salesforce that i delete , but if i lok in Salesforce it says "deleted objects(2)". I need to go into there and Erase.
At the moment i am doing the following
custids is a string[] of the salesforce id for that object.

sfservice.DeleteResult[] deleteResult = mysrvc.delete(custids);

and then

sfservice.EmptyRecycleBinResult[] emptyresult= mysrvc.emptyRecycleBin(custids);

But when i look in Salesforce , I can still see the objects as Deleted Objects and I need to go in manually and delete them

How can i delete them permanently ?
ShirishaShirisha (Salesforce Developers) 
Hi Mel,

Greetings!

Seems like the components will still be available after running EmptyRecycleBinResult[] unless salesforce run the physical delete as mentioned in the below thread:

https://salesforce.stackexchange.com/questions/4020/whats-the-actual-meaning-of-all-rows-in-soql

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri