Skip to main content
DELETE
Requires location:delete and project API access. The location must belong to the project in the URL.
This request deletes a real location. Run the cURL, JavaScript or PHP example only with a location you created for testing.
string
required
The public project ID.
string
required
The public location ID.
JavaScript examples run in Node.js 22 or later; PHP examples require PHP 8.2 or later with cURL. Both read STOREROCKET_TOKEN from your environment. See the quickstart for setup.
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.