Delete a custom field
sf_delete_custom_fieldDelete a Salesforce custom field by its Tooling API Id (00N...). Obtain the Id via sf_list_custom_fields; then remove the field when MC_NEXT_ALLOW_METADATA_CHANGES is enabled.
Instructions
Delete a custom field via the Tooling API (DELETE /tooling/sobjects/CustomField/{id}). Requires the field's Tooling API Id — find it with sf_list_custom_fields. 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": {
"fieldId": "<fieldId>"
},
"name": "sf_delete_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fieldId | Yes | The Tooling API Id of the CustomField record (starts with 00N). |