---
title: "Deletes all geofences"
method: DELETE
path: "/geofences/v2"
tags: ["Geofences"]
---

# Deletes all geofences

`DELETE /geofences/v2`

Deletes all geofences of a project.

If a geofence is associated with a stock rule, the rule will also be deleted.

Note that one needs to supply an HTTP header `x-confirm` with the value `true` to force the deletion. 
If the header is not provided, the request will fail.

## Headers

- `x-confirm` 'true', required

## Response `204`

Successful (no content)

All geofence definitions were successfully deleted.

## Other responses

- `400` — Bad request The request object is in an incorrect format or has values that are invalid or out of range. If available, further error details are provided in the response body.
- `401` — Unauthorized The request did not provide correct authentication details
- `403` — Forbidden The account does not have the correct privileges

---

[API](https://skmtc.net/here/apis/tracking.md) · [All operations](https://skmtc.net/here/apis/tracking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/here/tracking/revisions/efa162f7023c/schema)
