---
title: "Delete a location"
method: DELETE
path: "/v1/locations/{locationId}"
tags: ["Locations"]
---

# Delete a location

`DELETE /v1/locations/{locationId}`

## Request

- Base URL: `https://api.workwing.io`
- URL: `https://api.workwing.io/v1/locations/{locationId}`
- Auth: HTTP bearer

Delete one location. The response is the deleted location.

Requires an `Idempotency-Key` header.

## Path parameters

- `locationId` string, uuid, required

## Query parameters

- `select` string

## Headers

- `Idempotency-Key` string, required

## Response `200`

The deleted location

- object: The deleted location
  - `data` object
    - `id` string, uuid
    - `customer_id` string, uuid
    - `address_line1` string, nullable
    - `address_line2` string, nullable
    - `premise` string, nullable: Building name or number
    - `thoroughfare` string, nullable: Street name
    - `sublocality` string, nullable: Neighborhood or district
    - `locality` string, nullable: City or town
    - `administrative_area` string, nullable: State or province
    - `administrative_area_code` string, nullable
    - `postal_code` string, nullable
    - `country` string, nullable: ISO country code
    - `country_name` string, nullable
    - `formatted_address` string, nullable: Full formatted address string
    - `latitude` number, nullable
    - `longitude` number, nullable
    - `location_precision` string, nullable
    - `what3words_address` string, nullable
    - `plus_code` string, nullable
    - `location_type` string, nullable
    - `location_notes` string, nullable
    - `is_verified` boolean, nullable
    - `verified_at` string, date-time, nullable
    - `verified_by_user_id` string, uuid, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `created_by_user_id` string, uuid, nullable
  - `meta` object
    - `request_id` string
    - `timestamp` string, date-time

## Other responses

- `401`: Default Response
- `404`: Default Response

---

[API](https://skmtc.dev/workwing/apis/workwing-api.md) · [All operations](https://skmtc.dev/workwing/apis/workwing-api/llms.txt) · [OpenAPI document](https://skmtc.dev/workwing/apis/workwing-api/revisions/54bb14368a35?raw)
