All Questions

Tagged with
Filter by
Sorted by
Tagged with
5
votes
1answer
8k views

Truncate or delete all records in a custom object

Using SOQL, how do I truncate an object or delete all rows. For example DELETE (Select id FROM MyObject__c) and delete [select Id FROM MyObject__c] and TRUNCATE TABLE MyObject__c All 3 example ...