Bulk delete Salesforce records
sf_bulk_delete_recordsDelete Salesforce records in bulk by sObject and IDs, up to 200 per call; larger lists are split automatically. Requires MC_NEXT_ALLOW_DESTRUCTIVE=true because operation is destructive.
Instructions
Delete up to 200 records per call (DELETE /composite/sobjects?ids=...). This is destructive and is blocked unless MC_NEXT_ALLOW_DESTRUCTIVE=true. Larger inputs are split into multiple calls automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Array of record Ids to delete. | |
| sobject | Yes | API name of the sObject, e.g. "Account", "Contact", or "My_Object__c". | |
| allOrNone | No | Roll back the entire batch if any delete fails. Default false. |