EmptyRecycleBin(List<ID>/sObject/List<sObject>)
It permanently deleted the record from recycle bin.
List < Account > accList = [SELECT Id FROM Account where isDeleted = true ALL ROWS];
Database.emptyRecycleBin(accList);
What You’ll Learn
Empty Recycle Bin method in Database class
It permanently deleted the record from recycle bin.
List < Account > accList = [SELECT Id FROM Account where isDeleted = true ALL ROWS];
Database.emptyRecycleBin(accList);
Get access to exclusive study material for Salesforce Certification and ace your exams!
Hey there! Glad you made it through our Salesforce Developer Training for beginners. But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.
REGISTER NOW
detemine the perfect
Salesforce profile for yourself.
Get Your Assgimnment Now