[[delete-private-location-api]] == Delete Private Location API ++++ Delete Private Location ++++ Deletes a private location using the provided location ID. === {api-request-title} `DELETE :/api/synthetics/private_locations/` `DELETE :/s//api/synthetics/private_locations/` === {api-prereq-title} You must have `all` privileges for the *Synthetics and Uptime* feature in the *{observability}* section of the <>. [[private-location-delete-params]] ==== Path Parameters `location_id`:: (Required, string) The unique identifier of the private location to be deleted. It must be between 1 and 1024 characters. [[private-location-delete-example]] ==== Example Here is an example of a DELETE request to delete a private location: [source,sh] -------------------------------------------------- DELETE /api/private-locations/ -------------------------------------------------- The API does not return a response body for deletion, but it will return an appropriate status code upon successful deletion. This API will delete the private location with the specified `locationId`. A location cannot be deleted if it has associated monitors in use. You must delete all monitors associated with the location before deleting the location.