Delete location
DELETE
/locations/{locationId}
Permanently removes the location record from the selected organization.
Use cases
- Remove a site that is no longer managed by the organization.
Related endpoints
- GET /locations/{locationId} — verify the location before deletion.
- GET /locations — review the remaining locations.
Parameters
Header Parameters
compatibility-date*
API compatibility date in YYYY-MM-DD format. Must be a date after 2025-11-01.
Type
Requiredstring
Example
"2025-11-02"Pattern
^\d{4}-\d{2}-\d{2}$organization-id*
Routes the request to the organization named by this ID. The bearer token must be authorized for that organization.
Type
Requiredstring
Example
"3b241101-e2bb-4255-8caf-4136c566a962"Min Length
1Max Length
40Path Parameters
locationId*
ID returned by POST /locations or GET /locations. It scopes location updates and image operations to one site.
Type
Requiredstring
Example
"2ABCDEFGHJKLMNPQRSTU"Min Length
1Max Length
40Responses
success.location.delete
application/json