Hi team I want to delete the data pipeline and ta...
# all-things-deployment
c
Hi team I want to delete the data pipeline and task ingested via airflow I am giving this command but it is not working Datahub delete —env PROD —entity_type data pipeline And also I tried by adding —platform airflow in the end but it is not working
h
Hi @creamy-van-28626, I am assuming that you have the urns of the pipeline and task. Could you try the following?
datahub delete --urn <urn> --hard
?
Also, when you ran the earlier command, did it succeed but did not delete or did it error out?
i
Hi @creamy-van-28626 You can delete pipeline and tasks using different keywords. Pipeline is used
dataflow
keyword in datahub cli and task is used
datajob
keyword in datahub cli. So you can delete like this.
Copy code
datahub delete --entity_type datajob --env PROD
datahub delete --entity_type dataflow --env PROD