Delete a location
Locations
Delete a location
Delete a location. Fails if the location still has on-hand stock or is the workspace default location. Requires locations.write scope.
DELETE
Delete a location
Authorizations
Bearer API key from Settings → API Keys. Use restricted keys (prefix retrac_) with the minimum scopes required.
Path Parameters
The location ID.
Query Parameters
The ID of the workspace.
Example:
"ws_cluuwcv0r..."
The slug of the project. This field is deprecated – use workspaceId instead.
Response
The deleted location ID