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

# Delete Day Part

Deletes a time part entity associated with a flight.

## Why Delete a Day Part?

You may find it necessary on occasion to delete a time part entity already associated with a flight. The Delete Day Part API endpoint enables you to delete this time part entity from a flight using a simple `POST` API call. When you make this API call, the specific time part entity you have specified will be removed from the flight.

## API Syntax

When using the Delete Day Part 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:

`POST https://api.kevel.co/v1/flight/{FlightID}/dayparting/{TimepartID}/delete`

Where:

* `POST` - 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.
* `dayparting` - the day parting object.
* `TimepartID` - the ID associated with the specific time part you want to delete.
* `delete` - removes the time part from the existing flight.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kevel-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v1/flight/{FlightID}/dayparting/{TimepartID}/delete": {
      "post": {
        "summary": "Delete Day Part",
        "description": "Deletes a time part entity associated with a flight.",
        "operationId": "delete-time-part",
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "## No response body"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Timepart not found for specified Flight and Timepart Id.\",\n  \"action\": \"DeleteTimepart\",\n  \"values\": {\n    \"FlightId\": 1234567,\n    \"Id\": 123\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Timepart not found for specified Flight and Timepart Id."
                    },
                    "action": {
                      "type": "string",
                      "example": "DeleteTimepart"
                    },
                    "values": {
                      "type": "object",
                      "properties": {
                        "FlightId": {
                          "type": "integer",
                          "example": 1234567,
                          "default": 0
                        },
                        "Id": {
                          "type": "integer",
                          "example": 123,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X POST -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \"https://api.kevel.co/v1/flight/12345/dayparting/67890/delete\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function deleteDayPart() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let result = await client.run('dayPart', 'delete', {\n    flightId: 12345,\n    id: 67890,\n  });\n  console.log(result);\n}\n\ndeleteDayPart();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef delete_day_part()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    timepart_id = 67890\n    pp client.day_parts.delete(flight_id, timepart_id)\nend\ndelete_day_part()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```