GitHub user MilosPetrovic4 created a discussion: Deleting Airflow Asset
Hey Airflow Devs, I have recently set up Asset based scheduling between my DAGs. The issue I encountered was that I wanted to change the name of an Asset while keeping the same URI. When I tried to rename the Asset, I received a parse error from the DAG processor because I was creating another Asset with the same URI. Because of this I wanted to delete my previous Asset name and its events to allow for my newly named Asset to be created. However after searching online and the looking through the Airflow UI I was unable to find a way to delete the Asset information from the UI, I also don't think the REST API has an endpoint for this. I managed to delete the Asset by connecting directly to the Airflow metadata DB and removing the table entry based on the URI. But I am not happy with this solution as in the future I may have to cleanup many more Assets or rename Assets while keeping the same URI, so I was wondering if there is a better way to go about deleting deprecated Assets and why this isn't functi onality available in the Airflow UI. GitHub link: https://github.com/apache/airflow/discussions/58694 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
