Bulk Delete Records
A 5-step recipe with Salesforce. We can help you get access.
Recipe · 5 steps
Bulk Delete Records
with Salesforce
Bulk delete records from a Salesforce object via the Bulk API 2.0 ingest lifecycle.
- Create a new Bulk API 2.0 ingest job configured for the delete operation against the target object. The job starts in the Open state.
- Upload the CSV of record Ids to the open ingest job. The header row must contain the single Id column.
- Close the ingest job by setting its state to UploadComplete, which tells Salesforce to begin processing the deletions.
- Poll the ingest job state. When the job reaches JobComplete, continue to retrieve results; while still InProgress or UploadComplete, loop back to poll again; if the job Failed or Aborted, stop the workflow.
- Retrieve the CSV of successfully deleted records once the job has reached JobComplete.
What you'll need to have ready
- object: The API name of the SObject to delete records from (e.g. Account).
- csvData: CSV payload whose header is a single Id column followed by one record Id per row to soft-delete.
- lineEnding: Line ending used in the CSV data (LF or CRLF). Defaults to LF.
For your developer
Arazzo workflow salesforce:bulk-delete-records, 5 operations: createIngestJob → uploadJobData → updateIngestJob → getIngestJobInfo → getSuccessfulResults. Specs on APIs.io.