> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/geofence/_delete.md).

# \_delete

Deletes a chosen Geofence.

### Parameters

#### id

The ID of the chosen Geofence.

### Example

```
FM_api(
    'Geofence_delete',[
        'id' => '2'
    ]
);
```

### Results

#### On Success

```
{"ok":1}
```

#### On Failure

If there is no ID given or it is less than 1:

```
{"error":"missing or invalid parameter: id"}
```

If a valid ID is given but there is no Geofence assigned to said ID.

```
{"error":"geofence does not exist"}
```
