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

# Delete Location

> Delete a location.



## OpenAPI

````yaml delete /locations/{id}
openapi: 3.1.0
info:
  title: Locations API
  description: >-
    API for managing locations


    ### Resource identifier format


    Resource identifiers (the `id` field and related global-identifier fields)
    are returned as JSON

    integers by default. To receive them as strings instead, send the

    `X-Loop-Global-Identifier-Type: string` request header.
  version: v1
servers:
  - url: https://api.loopreturns.com/api/v1
security: []
tags:
  - name: Locations
    description: Operations related to managing locations
paths:
  /locations/{id}:
    delete:
      tags:
        - Locations
      summary: Delete Location
      description: Delete a location.
      operationId: deleteLocation
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
          description: The location's unique identifier.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationDeleteResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
      security:
        - write: []
components:
  schemas:
    LocationDeleteResponse:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: The unique integer identifier for the location, created by Loop.
          examples:
            - 9007199254740991
        success:
          type: boolean
          description: Whether the location was successfully deleted.
          examples:
            - true
    UnauthorizedResponse:
      type: object
      required:
        - errors
      properties:
        errors:
          type: string
          examples:
            - Unauthorized.
    NotFoundResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          examples:
            - Resource not found.
  securitySchemes:
    write:
      name: X-Authorization
      type: apiKey
      in: header
      description: 'API Scope: "Locations (write)"'

````