You need to sign in to do that
Don't have an account?

Automatic Delete using Custom Bottom
Hi All
I have more than 10000 record in my custom object ,so how to delete all record automatically uisng custom bottom
I have more than 10000 record in my custom object ,so how to delete all record automatically uisng custom bottom
You can perform this action through apex code.
As per my understanding you want a button and click on that button you want to delete 10000 record.
DML can perform with 10000 thousand reocrd not larger than this count. If you have more than 10000 thousand reocrd you can do this via Dataloader or you can wirte a batch call to delete the records.
-Thanks
Ashlekh Gera
{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
sforce.apex.execute("DeleteRecordsSvc", "DeleteAllRecords");
Hope this helps.
sforce.apex.execute("DeleteRecordsSvc", "DeleteAllRecords", { });
Hope this works.