Delete Template

The delete template endpoint allows you to permanently delete a specific template.

Request

DELETE /v1/templates/{template_id}

Path Parameters

ParameterTypeDescription
template_idstringThe unique identifier of the template to delete

Response

A successful request returns an empty response with a 200 status code.

Examples

const apiKey = "Your_API_Key";
const templateId = "template_123";

const response = await fetch(`https://templatedocs.io/api/v1/templates/${templateId}`, {
    method: 'DELETE',
    headers: {
        "Authorization": `Bearer ${apiKey}`
    }
});