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

# Delete template

> Deletes an invoice template. Cannot delete the default template.



## OpenAPI

````yaml specs/billing_api_docs.json delete /api/v1/invoices-templates/{id}
openapi: 3.0.1
info:
  title: Billing API
  description: Billing service for managing subscriptions, payments, and entitlements
  contact: {}
  version: '1.0'
servers:
  - url: https://dev-billing-api.iqraa.ai/api/v1
security: []
tags:
  - name: Customers
    description: Customers related endpoints
  - name: Subscriptions
    description: Subscription related endpoints
  - name: Plans
    description: Plans related endpoints
  - name: Entitlements
    description: Entitlements related endpoints
  - name: Payments
    description: Payments related endpoints
  - name: Emails
    description: Email related endpoints
paths:
  /api/v1/invoices-templates/{id}:
    delete:
      tags:
        - Invoice Templates
      summary: Delete template
      description: Deletes an invoice template. Cannot delete the default template.
      operationId: InvoiceTemplatesController_deleteTemplate
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Template deleted successfully
        '404':
          description: Template not found
        '409':
          description: Cannot delete the default template

````