Experience Salesforce
Empty Recycle Bin
What You’ll Learn
- EmptyRecycleBin(List/sObject/List)
Topics
- What Is DML In Salesforce?
- Insert | APEX DML Standalone Statements
- Update | APEX DML Standalone Statements
- Upsert | APEX DML Standalone Statements
- Delete | Apex DML Standalone Statement
- Undelete | Apex DML Standalone Statement
- Merge | APEX DML Standalone Statements
- APEX DML Statements Best Practices
- Database Class in APEX
- Empty Recycle Bin
- Count Query | Method in Apex Database Class
- Lead Conversion | Method in Apex Database Class
- Transaction Control and Rollback
- Database Class Method Result Object
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);
Next Topic
Need Extra Support? Our FREE study materials have got you covered.
Our expert-prepared study materials provide the answers you need. Clear your doubts and improve your skills with detailed notes from industry professionals.