After deleting a dag from the dags directory, it is still displayed in the UI #40331
Replies: 4 comments 8 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
Deleting the Airflow dag file doesn't delete the db entries. You might want to try below command to delete the related entries. Please also check the below discussion that has different steps in deleting the dag completely.
|
Beta Was this translation helpful? Give feedback.
-
Please try @tirkarthi 's suggestion. |
Beta Was this translation helpful? Give feedback.
-
Closing as reopened back as an issue. |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
Other Airflow 2 version (please specify below)
If "Other Airflow 2 version" selected, which one?
2.8.3
What happened?
Dag has been removed from the airflow dags directory /opt/airflow/dags. Dag is not displayed when running the airflow dags list command. But it is still available in the Airflow UI, and it is also available in the Airflow postgres database.
What you think should happen instead?
It is expected that dag will be automatically removed from the web interface after deleting dag from the dags directory.
How to reproduce
Remove dag from the /opt/airflow/dags directory and it will still be available in the web interface even after a few days
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions