Delete a JsonFabrica template
jsonfabrica_delete_templateArchive a template by setting its status to 'archived' without erasing it, so it stops appearing in normal listings while remaining accessible for reads and generation.
Instructions
Calls DELETE /v1/templates/{templateId}. This is a soft delete: the template's status is set to "archived" (it is not erased from storage), and the call returns the resulting archived template record. Archived templates are excluded from jsonfabrica_list_templates by default — pass status: "archived" there to find them again — and both jsonfabrica_get_template and jsonfabrica_generate_from_template still work against the id afterwards, since archiving does not block reads or generation. Use this when a template should stop showing up in normal listings; there is currently no tool to restore an archived template back to active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | ID of the template to delete. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Template body containing function-call placeholders. | |
| name | Yes | Template name. | |
| tags | No | Tags stored on the template. | |
| status | Yes | "active" unless soft-deleted via jsonfabrica_delete_template. | |
| astCache | No | Server-internal parsed-body cache; opaque to callers. | |
| tenantId | Yes | Owning tenant id. | |
| warnings | No | Non-fatal validation warnings, if any. | |
| createdAt | Yes | ISO-8601 creation timestamp. | |
| updatedAt | Yes | ISO-8601 last-update timestamp. | |
| validated | No | Whether the body passed static template validation. | |
| templateId | Yes | Server-assigned template id. | |
| description | No | Free-text description, if any was stored. |