> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# delete

> Delete an API token.

Delete an API token.

### Schema

```yaml
openapi: 3.1.0
info:
  title: API
  version: 1.0.0
paths:
  /Accounts/{AccountSid}/tokens/{token_id}:
    delete:
      operationId: delete_token
      summary: Delete an API Token
      description: >-
        Delete an API Token. This action cannot be undone.


        #### Permissions


        The API token used to authenticate must have the following scope(s)
        enabled to make a successful request: _Management_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).
      tags:
        - subpackage_tokens
      parameters:
        - name: AccountSid
          in: path
          description: >-
            The unique identifier for the project you want to use to
            authenticate this request.
          required: true
          schema:
            $ref: '#/components/schemas/uuid'
        - name: token_id
          in: path
          description: The unique identifier of the project API token.
          required: true
          schema:
            $ref: '#/components/schemas/uuid'
      responses:
        '204':
          description: 204 No Content response.
          content:
            application/json:
              schema:
                type: object
                properties: {}
        '400':
          description: >-
            The request was invalid or cannot be processed. Check the error
            details for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
        '401':
          description: Authentication failed. Please verify your credentials and try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
        '404':
          description: >-
            The requested resource was not found. Please verify the resource
            identifier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
servers:
  - url: https://YOUR_SPACE.signalwire.com/api/laml/2010-04-01
    description: SignalWire Compatibility API
components:
  schemas:
    uuid:
      type: string
      format: uuid
      description: Universal Unique Identifier.
      title: uuid
    CompatibilityErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Error code.
        message:
          type: string
          description: Error message.
        more_info:
          type: string
          description: URL for more information about the error.
        status:
          type: integer
          description: HTTP status code.
      required:
        - code
        - message
        - more_info
        - status
      description: Error response model.
      title: CompatibilityErrorResponse

```

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

client.compat.tokens.delete("token-id")
```