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 commands in the Developer console returns:
The query has to start with 'FIND' or 'SELECT'