Delete a custom object
sf_delete_custom_objectDelete a Salesforce custom object and its data via Tooling API. Provide the object's Tooling API Id to permanently remove it.
Instructions
Delete a custom object via the Tooling API (DELETE /tooling/sobjects/CustomObject/{id}). Requires the object's Tooling API Id — find it with sf_list_custom_objects. This removes the object and its data. Gated behind MC_NEXT_ALLOW_METADATA_CHANGES=true.
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": {
"objectId": "<objectId>"
},
"name": "sf_delete_custom_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | Yes | The Tooling API Id of the CustomObject record (starts with 01I). |