## Why Delete an Ad?

When you are managing flights and campaigns, you may find it necessary to delete an existing ad associated with a flight. Removing this ad removes the ad from the flight, and it will no longer be part of the flight and campaign.

> 📘
> ### Note
> The Delete Ad API call deletes the ad; however, please note that the creative remains at the advertiser level, allowing you to use the ad in the future.

## API Syntax

When using the Delete Ad API call, 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:

`GET https://api.kevel.co/v1/flight/{FlightID}/creative/{AdID}/delete`

Where:

- `GET` \- 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 of the flight.
- `creative` \- the creative associated with the flight.
- `AdId` \- The ID of the ad you would like to delete.
- `delete` \- The action to delete the ad from the flight.

### Parameters

| Name    | Type   | Required | Description                                       |
|---------|--------|----------|---------------------------------------------------|
| FlightID| int32 | Yes      | ID of the Flight                                   |
| AdID    | int32 | Yes      | ID of the Ad/ Creative Flight Map. This is not the ID from Create Creatives. |

# Response Codes

| Code | Description                        |
|------|------------------------------------|
| 200  | This creative map has been deleted |

### Example Request

```shell
curl -X GET -H 'X-Adzerk-ApiKey:<APIKEY>' "https://api.kevel.co/v1/flight/12345/creative/123456/delete"
```

### Example Response

```json
"This creative map has been deleted"
```
