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

# Delete a location

> Remove a location from a project.

Requires `location:delete` and project API access. The location must belong to the project in the URL.

<ParamField path="project_id" type="string" required>The public project ID.</ParamField>
<ParamField path="location_id" type="string" required>The public location ID.</ParamField>

<RequestExample>
  ```bash theme={null}
  curl -X DELETE 'https://storerocket.io/api/v2/projects/PROJECT_ID/locations/LOCATION_ID' \
    -H 'Authorization: Bearer YOUR_TOKEN' \
    -H 'Accept: application/json'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {"success":true}
  ```
</ResponseExample>

A successful deletion returns `200`. The location is removed from the project and its widget results.
Errors: `401` authentication, `403` access/permission, `404` inaccessible project or location, `429` rate limit. See [errors](/api/errors).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.