---
updatedAt: 2026-08-01T11:27:25.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Delete Flight Category

# 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.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/flight/{FlightID}/category/{FlightCategoryID}/delete": {
      "get": {
        "summary": "Delete Flight Category",
        "description": "",
        "operationId": "delete-category",
        "parameters": [
          {
            "name": "FlightID",
            "in": "path",
            "description": "ID of the Flight",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "FlightCategoryID",
            "in": "path",
            "description": "ID of Flight Category. You can find this via the List Category endpoints, or in the response when you create a Flight Category.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "\"Successfully Deleted\""
                  }
                },
                "schema": {
                  "type": "string",
                  "example": "Successfully Deleted"
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \"https://api.kevel.co/v1/flight/12345/category/123/delete\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function deleteFlightCategory() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let flightCategory = await client.run(\"flightCategory\", \"delete\", {flightId: 12345, id: 6789});\n  console.log(flightCategory);\n}\n\ndeleteFlightCategory();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef delete_flight_category()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    category_id = 6789\n    pp client.categories.delete(flight_id, category_id)\nend\ndelete_flight_category()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```