Skip to main content

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

ParameterTypeRequiredDescription
flight_idUUIDYesIdentifier 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.