Delete name
delete_nameDelete a name from the database. Its values are deleted with it, as are the documents and images uploaded to it with create_upload_link (the response's documentsDeleted says how many) - those cannot be brought back. The name itself can: restore_name returns it, with its attributes, sets and children, as a new name (find it with list_deleted_names). Looks up by integer nameId — the id returned in apply_structure's namesResolved, or surfaced by describe_set / describe_query. Returns 404 if no name matches the id.
═══ PROVENANCE — required on every write ═══ source: origin reference (why this name is being deleted — usually a ticket, note, or upstream document). Lands in the audit trail. agent: your AI agent name (e.g. "Claude"). Lands in the audit trail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | AI agent name (e.g. "Claude"). REQUIRED. | |
| nameId | Yes | Integer id of the name to delete (from apply_structure namesResolved, describe_set, describe_query, etc.) | |
| source | Yes | Origin reference — file, URL, document, or short note explaining the deletion. REQUIRED. | |
| business | No | Optional. The business this call is for, by name, e.g. "azquo" - it then runs there whatever business the session is in. Worth giving on writes when you work in more than one business: a new MCP session starts in the login's own business. list_businesses shows the names. | |
| database | Yes | Database name |