Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-1002

Add ability to remove DAG and all dependencies

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0, 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: core, DAG
    • Labels:
      None

      Description

      I don't see an obvious way to remove a DAG with dependencies

      Looks like folks have custom scripts to clean up backend database directly.

      http://stackoverflow.com/questions/40651783/airflow-how-to-delete-a-dag

      https://groups.google.com/forum/#!topic/airbnb_airflow/GVsNsUxPRC0

      It would be nice to have a feature to remove a DAG directly in UI / through API.

      queries = {'delete from xcom where dag_id = "' + dag_input + '"',
              'delete from task_instance where dag_id = "' + dag_input + '"',
              'delete from sla_miss where dag_id = "' + dag_input + '"',
              'delete from log where dag_id = "' + dag_input + '"',
              'delete from job where dag_id = "' + dag_input + '"',
              'delete from dag_run where dag_id = "' + dag_input + '"',
              'delete from dag where dag_id = "' + dag_input + '"' }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                Tagar Ruslan Dautkhanov
              • Votes:
                8 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: