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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sobject": "<sobject>",
"ids": "<ids>"
},
"name": "sf_bulk_delete_records"
}
}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. |