Delete template


Deletes a template from your account based on the template id you have provided. When the template is created on behalf of a particular sender email, then the delete operation can be performed on the same account by specifying the email in the onBehalfOf.

Code snippet

curl -X 'DELETE' \
  '' \
  -H 'accept: */*' \
  -H 'X-API-KEY: {your API key}'
var apiClient = new ApiClient("", "API-KEY");

var templateClient = new TemplateClient(apiClient);

import requests
url = ""
headers = {
  'accept': '*/*',
  'X-API-KEY': '<API-KEY>'

response = requests.request("DELETE", url, headers=headers, data=payload)
const axios = require('axios'); 
const response = await axios.delete('', { 
    params: { 
        'templateId': '{Paste your template ID}' 

    headers: { 
        'accept': '*/*', 
        'X-API-KEY': '<API-KEY>' 

Query parameters

templateIdstringRequiredThe ID of the template to delete.
onBehalfOfstringThe email address of the user that was used to create the template on their behalf.

Example response

204 No Content