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

# Delete Location

> Delete a location by ID

# DELETE /locations/{location_id}

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.

<Warning>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.</Warning>

* See `GET /locations` to list existing locations before deleting.
