delete_name
Permanently delete a name from the database (cascade-deletes its values, and the documents and images uploaded to it with create_upload_link - the response's documentsDeleted says how many). 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. | |
| database | Yes | Database name |