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

# Delete Dataset

> Delete a dataset from your account

export const permission_0 = 'dataset:delete'

<Info>Requires permission: **{permission_0}**</Info>

<Note>
  If the dataset was created in your account, it is permanently deleted. If it was added from the Variable Database or shared by a supplier, it is removed from your account but the original remains available in the database.
</Note>

<Warning>
  Datasets that are in use cannot be deleted. If the dataset is referenced by a switch, mix, product, or transport type, the request fails with `400` and the body lists the affected counts (for example, `switches: 2, products: 1`). Unlink those references first, then retry the delete.
</Warning>


## OpenAPI

````yaml DELETE /v1/dataset/{uuid}
openapi: 3.0.1
info:
  title: Variable API
  description: This is the Variable API
  version: 1.1.0
servers:
  - url: https://app.variable.global/api
security:
  - basicAuth: []
  - bearerAuth: []
  - oAuthNoScopes: []
paths:
  /v1/dataset/{uuid}:
    parameters:
      - in: path
        name: uuid
        required: true
        schema:
          type: string
          format: uuid
    delete:
      summary: Delete a dataset from your account
      description: >-
        If the dataset was created in your account, it is permanently deleted.
        If it was added from the Variable Database or shared by a supplier, it
        is removed from your account but the original remains available.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: ExpiredToken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpiredTokenResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    SuccessResponse:
      type: object
      properties:
        message:
          type: string
          example: Success
    ExpiredTokenResponse:
      type: object
      properties:
        message:
          type: string
          example: token expired
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    oAuthNoScopes:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /auth/token
          scopes: {}

````