Skip to main content
DELETE
/
locations
/
{location_id}
Delete Location
curl --request DELETE \
  --url https://api.example.com/locations/{location_id}

DELETE /locations/

Permanently delete a location from the workspace.

Notes

  • Requires a valid JWT with write access.
  • The location_id path parameter is the workspace-scoped integer index.
  • Returns 404 if the location does not exist or does not belong to the current workspace.
  • Returns {"deleted": true} on success.
Deleting a location does not automatically delete linked weather data records. Clean up orphaned weather data separately via DELETE /weatherdata/{weather_data_id} if needed.
  • See GET /locations to list existing locations before deleting.