Notes
In Salesforce Apex, the delete
statement is used to delete records from an object. When you use the delete
statement, it marks the specified records for deletion, and these records will be permanently removed from the Salesforce database when the transaction is committed.
Here's a basic example:
List<Account> acList = [SELECT Id FROM Account WHERE Active__c = 'No'];
if(!acList.isEmpty()){
delete acList;
}
Video
Video does not exists.