MD_DELETE_FLIGHT
Preview
This feature is in preview and is subject to change.
Deletes a Flight. All associated FlightVersion records, runs, and logs are removed. Active or pending runs are cancelled.
Deleting an already-deleted Flight returns a does not exist error.
Syntax
CALL MD_DELETE_FLIGHT(flight_id := '<flight_id>');
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
flight_id | UUID | Yes | Identifier of the Flight to delete. |
Examples
CALL MD_DELETE_FLIGHT(flight_id := '80000000-0000-0000-0000-000000000001');
After deletion, the Flight is no longer reachable through MD_LIST_FLIGHTS, MD_GET_FLIGHT, MD_LIST_FLIGHT_VERSIONS, or any other Flight function.
Related
MD_LIST_FLIGHTS— List remaining Flights.delete_flightMCP tool — AI-agent equivalent.