> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polymorfa.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete message template

> **Protocols:** Meta Cloud API

**Required scope:** `messages:write`

A successful response confirms provider deletion. A later complete catalog read reconciles any stored template copies that could not be removed during the delete request.



## OpenAPI

````yaml api-reference/features/business-graph.json DELETE /graph/whatsapp/{version}/{wabaId}/message_templates
openapi: 3.0.3
info:
  title: Business tools Polymorfa Graph API methods
  version: 1.0.0
  description: Task-focused business tools methods exposed by the Polymorfa Graph API.
servers: []
security: []
paths:
  /graph/whatsapp/{version}/{wabaId}/message_templates:
    delete:
      tags:
        - Message templates
      summary: Delete message template
      description: >-
        **Protocols:** Meta Cloud API


        **Required scope:** `messages:write`


        A successful response confirms provider deletion. A later complete
        catalog read reconciles any stored template copies that could not be
        removed during the delete request.
      operationId: graphDeleteMessageTemplate
      parameters:
        - schema:
            type: string
            example: v26.0
          required: true
          name: version
          in: path
          description: Specifies version for this path parameter.
        - schema:
            type: string
            example: '200000000000001'
          required: true
          name: wabaId
          in: path
          description: Identifier for the waba.
        - schema:
            type: string
            example: order_update
          required: false
          name: name
          in: query
          description: Human-readable name for this resource.
        - schema:
            type: string
            minLength: 1
            description: >-
              Optional key of 1 to 255 UTF-8 bytes, retained for 24 hours. Reuse
              it for the same request after an uncertain outcome; a completed
              request is not sent again.
          required: false
          description: >-
            Optional key of 1 to 255 UTF-8 bytes, retained for 24 hours. Reuse
            it for the same request after an uncertain outcome; a completed
            request is not sent again.


            <!-- polymorfa-input-table -->

            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | String length | At least `1` characters |
          name: Idempotency-Key
          in: header
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphDeleteTemplateResponse'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '403':
          description: Permission error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '404':
          description: Object does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '409':
          description: >-
            Idempotency key completed, in progress, has an unknown outcome, or
            was reused for a different request
          headers:
            X-Polymorfa-Error-Code:
              description: Stable idempotency error code
              schema:
                type: string
            Idempotent-Replayed:
              description: true for a recorded outcome
              schema:
                type: string
            Retry-After:
              description: Seconds before checking an in-progress request again
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '502':
          description: >-
            Provider response unavailable or malformed; the write outcome may be
            unknown
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
        '503':
          description: >-
            Provider unavailable or pre-dispatch reservation failed; use the
            stable error code to distinguish an unknown outcome from a proven
            no-attempt refusal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/graph__GraphError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/graph__X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/graph__X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/graph__X-RateLimit-Reset'
      security:
        - graph__BearerAuth: []
      servers:
        - url: https://api.polymorfa.com
components:
  schemas:
    graph__GraphDeleteTemplateResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request succeeded.
      required:
        - success
    graph__GraphError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable message associated with this result.
            type:
              type: string
              description: Type discriminator for this object.
            code:
              type: number
              description: Stable machine-readable code for this result.
            error_subcode:
              type: number
              description: Machine-readable error subcode for this error.
            error_data:
              nullable: true
              description: |-
                Specifies error data for this error.

                <!-- polymorfa-input-table -->
                **Accepted alternatives**
                | Alternative | Accepted input |
                | --- | --- |
                | Alternative 1 | Any JSON value matching this alternative |
                | Alternative 2 | `null` |
            fbtrace_id:
              type: string
              description: Identifier for the fbtrace.
          required:
            - message
            - type
            - code
            - fbtrace_id
          description: Error details returned when the operation fails.
      required:
        - error
  headers:
    graph__X-RateLimit-Limit:
      description: >-
        Team request quota per rolling minute, when the per-team request limiter
        applies.
      schema:
        type: integer
        minimum: 1
    graph__X-RateLimit-Remaining:
      description: >-
        Requests left in the per-team quota; zero when this limiter rejects the
        request.
      schema:
        type: integer
        minimum: 0
    graph__X-RateLimit-Reset:
      description: >-
        Unix timestamp in seconds when the oldest counted request leaves the
        rolling window, when the per-team request limiter applies. Follow
        Retry-After on a rejected request.
      schema:
        type: integer
        minimum: 0
  securitySchemes:
    graph__BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Polymorfa organization key (pmfa_ prefix) or project token (pmfa_pt_
        prefix). Client tokens are not accepted by Graph operations.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.