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
Anju Alexander 8Anju Alexander 8 

Information About Whether Hard Delete Has Happened?

Hi All,

Is there anyway to know that HARD DELETE has happened? I don't want the data that has been hard deleted....I only want to know that hard delete has happened or not?

Please help ......

Thanks,
Anju
Sagar PareekSagar Pareek
Check your salesforce org's recycle bin. If records are not present there that means records were hard deleted.
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I hope that will help  you

Activation of Bulk API Hard Delete on System Administrator profile
https://help.salesforce.com/HTViewSolution?id=000171306&language=en_US (https://help.salesforce.com/HTViewSolution?id=000171306&language=en_US)

"Hard Delete" using batch Apex
https://help.salesforce.com/apex/HTViewSolution?id=000135460&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000135460&language=en_US)
 
//delete list of expired Case Share records
            delete scope;   
            DataBase.emptyRecycleBin(scope);
Note: 1.   The DML operation  datatbase.emptyRecycleBin is limited to 200 items, it is a known issue and currently no workaround is possible for this
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_database.htm

Please let us know if this will help you