> ## 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 Location

> Delete a location

export const permission_0 = 'element:delete'

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


## OpenAPI

````yaml DELETE /v1/location/{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/location/{uuid}:
    parameters:
      - in: path
        name: uuid
        required: true
        description: A location's `uuid` or `syncId`.
        schema:
          type: string
    delete:
      summary: Delete a location
      responses:
        '204':
          description: No Content — the location was deleted.
        '401':
          description: ExpiredToken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpiredTokenResponse'
        '404':
          description: >-
            No location with that `uuid` or `syncId` is accessible to your
            account (it is neither your company's nor an unclaimed supplier's
            that you registered it for).
        '409':
          description: >-
            The location is still referenced by a product, activity, or
            transport leg and cannot be deleted. Detach those references first.
      security:
        - bearerAuth: []
components:
  schemas:
    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: {}

````