Delete a Template
Permanently delete a specific email template using its unique identifier in SenderWiz.
🗑️ Delete a Template
Use this endpoint to remove a template from your account. This action is irreversible.
🔹 HTTP Request
DELETE API-URL/templates/TEMPLATE-UNIQUE-ID
🔸 URL Segments
Segment
Required
Description
TEMPLATE-UNIQUE-ID
Yes
Unique ID of the template to delete.
🔐 Authorization Header
X-API-KEY: your-api-key-here
💻 PHP Example
// DELETE TEMPLATE
$response = $endpoint->delete('TEMPLATE-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
📦 Sample JSON Response
{
"status": "success"
}
Last updated