Delete Custom Field
delete_custom_fieldDelete a custom field definition by id (GUID) or entity.fieldName, as the Settings page does. Soft: the field disappears from list_custom_fields and stops accepting new values, but every stored value is RETAINED, so re-creating the same entity.fieldName with save_custom_field (same type) restores the field and its values exactly. Values already written stay visible in the customFields map of the record read tools until the field is restored or the records are rewritten. The preview counts the records that carry a value. A field active price books price by cannot be deleted until those attributes are remapped. Requires an operator (unpinned) credential.
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": {
"customField": "<customField>"
},
"name": "delete_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| customField | Yes | The custom field to delete: its id (GUID) or "entity.fieldName". | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| deleted | No | ||
| preview | No | ||
| expiresAt | No | ||
| customField | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |