I’m working on a usecase to push records daily to a custom object. While pushing the records I need to delete all the existing records and push fresh data to the custom object.
Is there any way to delete all the records in one go through some API? Or any alternative way to do so?
Hey, @SHarde I want to make sure you’ve seen this post which covers an option for identifying records and batch deleting them — Delete Bulk Custom Object Records
Once you have the Object IDs, you can utilize the Batch Archive endpoint
Please navigate to this page and search ‘/crm/v3/objects/{objectType}/batch/archive’ endpoint to delete the records of a custom object in the batch. You will need the ID of that custom object as an input in the endpoint to initiate a bulk delete custom object record call.
Sorry, but maybe I am missing something here… If I want delete all Custom Objects in a single shot, why would I need the ID of the custom objct? It doesn’t make sense to me… If I will need the ID, then first I will need to select the Custom Object record, get its ID and then use it in the batch archive endpoint… it doesn’t seem a delete in one call for me..