# Why delete a flight category?

When you want to delete a flight category from a flight, you may use the `Delete Flight Category` API endpoint to remove a category.

> 📘
>
> ### Note
>
> It is important to understand that calling this endpoint will not delete the category from UserDB. This only removes the link to the flight.

# API syntax

When using the `Delete Flight Categories` API, 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}/category/{FlightCategoryID}/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 associated with the flight.
- `category` - The different categories associated with the flight.
- `FlightCategoryID` - The ID associated with the Flight Category.
- `delete` - The action being taken with this API call.

## Parameters

### FlightID

- Type: int32
- Required: Yes
- Description: ID of the Flight

### FlightCategoryID

- Type: int32
- Required: Yes
- Description: ID of Flight Category. You can find this via the List Category endpoints, or in the response when you create a Flight Category.

# Response

## 200

```shell
curl -X GET -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" "https://api.kevel.co/v1/flight/12345/category/123/delete"
```
```json
"Successfully Deleted"
```
