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);

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 Assignment Now