## Why Delete Distance Targeting Geometry?

You may find it necessary to remove a distance targeting geometry object from a flight when you want to change the targeting parameters for that flight. The Kevel API enables you to delete a distance targeting geometry object using the `DELETE` call to the Distance Targeting Geometry API endpoint. When you make this request, the geometry object associated with the flight you specified, using `FlightID` will be removed from the flight.

## API Syntax

When using the Delete Distance Targeting Geometry API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`DELETE https://api.kevel.co/v1/flight/{FlightID}/distance/{GeometryID}`

Where:

- `DELETE` - the type of API request being made.
- `https://api.kevel.co` - the URL for the request.
- `v1` - the API version.
- `flight` - the API endpoint being called.
- `FlightID` - the ID associated with the flight.
- `distance` - the distance targeting geometry object that contains the `Distance`, `Latitude`, `Longitude`, and `StreetAddress` body parameters used for distance targeting.
- `GeometryID` - The ID of the Distance Targeting geometry

### FlightID

- **int32**

required

The ID of the flight

### GeometryID

- **int32**

required

The ID of the Distance Targeting geometry

### accept

- **string**

enum

Defaults to application/json

Generated from available response content types

Allowed:

`application/json`
  `text/plain`

# `200      200`

json

# `400      400`

## Example Request

```bash
curl -X DELETE -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" https://api.kevel.co/v1/flight/12345/distance/1234
```

## No response body
