Skip to content

Soft-delete a geofence

Request

Hides a geofence from list and apply immediately by setting is_deleted and deleted_at. The definition row is kept so devices that still have it can resolve the name (for example {name} (Deleted) on Device Overview). Device associations are not removed by this call.

Common Use Cases

  • Removing a geofence from the console while leftover devices catch up
  • Reusing the same geofence name after delete
Security
geofence_bearerAuth
Path
geofence_idstring, (uuid)required

UUID of the geofence

Example:f5316a75-f186-4769-970e-28d6a1a0e110
cURL
curl -i -X DELETE \
  https://develop-api.esper.io/_mock/openapi/geofence/v1/geofences/f5316a75-f186-4769-970e-28d6a1a0e110 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Geofence soft-deleted successfully

Bodyapplication/json
contentobject

Empty content object

Example:
{}
Response
{ "content": {} }