Hard Delete using Apex in Salesforce

emptyRecycleBin():

Delete records from the recycle bin immediately.

Pass the record list to emptyRecycleBin() to delete it from Recycle Bin.

Example:

Database.emptyRecycleBin(listRecs);

here listRecs is the list of records to be deleted from Recycle Bin.

Cheers!!!

1 comment:

  1. Salesforce Developer Training | 21cssindia
    www.21cssindia.com/Salesforce-Developer-Training
    Salesforce Developer Training Click Here For Enquiry Force.com Code (Apex)

    ReplyDelete