---
agentTools:
  projectIndex: https://chatarchitectcom-for-whatsapp.readme.io/llms.txt
---

# Delete a template

# OpenAPI definition

```json
{
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "scheme": "basic",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "This API allows you to send and receive messages via WhatsApp. In addition to message transmission, the API supports storing the current state of the application. This feature enables applications to be stateless and serverless, enhancing flexibility and scalability. The API supports two types of storage: app storage and user storage.\n- Saving data is possible in JSON format using the \"storage\" and \"user_storage\" parameters in API calls.\n- The API transfers saved data (\"storage\" and \"user_storage\") along with each WhatsApp message.\n- Applications can return the current storage (\"storage\") when responding to received messages.\n- \"storage\" and \"user_storage\" can contain any parameters.\n- By default, \"storage\" and \"user_storage\" overwrite previous content. To update only part of the parameters, specify \"storage_update\": \"true\" and \"user_storage_update\": \"true\".\nIt is possible to send some data in every API request, and you will receive this data with the future webhook. This data is not used in the API but works like a database.\n\n\n**WhatsApp text formatting**\n\nYou can format text, and you can add emoji [here](https://emojipedia.org/whatsapp/).\n\n| Formatting     | Symbol              | Example                 | How message displays on WhatsApp |\n|----------------|---------------------|-------------------------|----------------------------------|\n| Bold           | Asterisk (*)        | Your total is *$10.50*.| Your total is $10.50.            |\n| Italics        | Underscore (_)      | Welcome to _WhatsApp_!  | Welcome to WhatsApp!             |\n| Strike-through | Tilde (~)           | This is ~better~ best!  | This is better best!             |\n| Code           | Three backticks (\\`\\`\\`) | \\`\\`\\`print 'Hello World';\\`\\`\\` | print 'Hello World';|\n",
    "title": "WhatsApp Message API",
    "version": "1.0.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/template/{elementName}": {
      "delete": {
        "parameters": [
          {
            "description": "Name of the template element to delete",
            "in": "path",
            "name": "elementName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "example": "success",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "The template was deleted successfully."
          }
        },
        "summary": "Delete a template"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.chatarchitect.com"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 68,
      "2": 212,
      "3": 151,
      "4": 233,
      "5": 88,
      "6": 175,
      "7": 0,
      "8": 16,
      "9": 48,
      "10": 61,
      "11": 7
    }
  }
}
```