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

Our Recent Blog

Share This Post