CRM

Delete a custom field

crm_delete_field · Deletes data · Markdown

Deletes a custom field and its value on every record, for good.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Drop the fax number field from contacts. Nobody uses it.

Your agent callscrm_delete_field$0.001 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "object": "contact",
  "key": "fax"
}
What comes back
{
  "deleted": {
    "object": "contact",
    "key": "fax"
  },
  "values_cleared": 0
}

Use it when

A custom field is no longer used, or must change its type.

What it does

Delete a custom field and its value on every record. This cannot be undone.

What comes back

deleted: the object and key, and values_cleared: how many records lost a value. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
objectRequiredstringOne of: contact,company,deal.
keyRequiredstring1 to 40 characters.

The call

Over MCP, call crm_delete_field on https://api.conecto.chat/mcp/crm. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/crm_delete_field \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"object":"contact","key":"fax"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404The object has no custom field with that key.Call crm_list_fields and use one of its custom keys.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md