# (NEW!) Delete Metadata Template Permanently delete a metadata template by its ID. Deletion is blocked if the template has dependencies (e.g., assets using this template). Delete Rules: - Template must exist for the authenticated customer - Template ID must be a valid UUID - Template type must be one of default, asset, or action - Template cannot be deleted if it has dependencies (assets using it) - Related asset records are cleaned up - Deletion is recorded in tenovos_delete_history This action is permanent and cannot be undone. The user submitting the request must have the Metadata Management admin privilege. Endpoint: DELETE /metadata/template/{id} Version: 1.5 Security: ApiKeyAuth, BasicAuth ## Header parameters: - `Authorization` (string, required) Bearer token from authentication. - `X-API-Key` (string) Customer-specific API key (optional). ## Path parameters: - `id` (string, required) The unique ID of the metadata template to delete. Example: "e0d05152-9d1b-4b1e-bcb2-e762d195ec68" ## Response 400 fields (application/json): - `message` (string) - `detail` (string) ## Response 401 fields (application/json): - `message` (string) - `detail` (string) ## Response 403 fields (application/json): - `message` (string) - `detail` (string) ## Response 404 fields (application/json): - `message` (string) - `detail` (string) ## Response 204 fields