---
title: "Delete a geofence"
method: DELETE
path: "/v0/enterprise/{enterprise_id}/create-apply-geofence/{geofence_id}/"
tags: ["esper_cloud_api_Geofence"]
---

# Delete a geofence

`DELETE /v0/enterprise/{enterprise_id}/create-apply-geofence/{geofence_id}/`

⚠️ Legacy endpoint. Android only. Geofence configuration is now managed through blueprints. Use the blueprints endpoints (/api/v2/blueprints/) to create and manage geofences going forward.

Permanently deletes a legacy geofence record by UUID via the create-apply-geofence detail path.

Returns HTTP 204 with an empty body on success. Remove devices from the geofence before deleting the geofence.

## Path parameters

- `geofence_id` string, uuid, required
- `enterprise_id` string, uuid, required

## Response `204`

The resource was deleted successfully.

## Other responses

- `400` — Bad Request
- `401` — Authorization information is missing or invalid.
- `404` — Not Found.
- `500` — Internal server error

---

[API](https://skmtc.net/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.net/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esper/esper-api-reference/versions/e1f64cbb488e/schema)
