dex_delete_custom_field
Permanently delete a custom field and remove its values from all contacts in Dex CRM.
Instructions
Permanently delete a custom field and remove its values from all contacts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customFieldId | Yes |
Implementation Reference
- src/tools/custom-fields.ts:78-92 (handler)The implementation of the dex_delete_custom_field tool handler, which uses the dex client to send a DELETE request to the /v1/custom-fields/{customFieldId} endpoint.
server.tool( "dex_delete_custom_field", "Permanently delete a custom field and remove its values from all contacts.", { customFieldId: z.string() }, async (args) => { try { const result = await dex.delete( `/v1/custom-fields/${args.customFieldId}` ); return toResult(result); } catch (error) { return toError(error); } } );