delete all data pipeline using aws cli

0

Im trying to delete all the data pipeline that shows up in

aws datapipeline list-pipelines

in one go. How do I do that using aws-cli?

Kaviya
已提問 8 個月前檢視次數 284 次
1 個回答
3

Hi Kaviya,

You may want to do this something like this:

   for i in $(aws datapipeline list-pipelines --profile <CLI_PROFILE_NAME> --output text); do aws datapipeline delete-pipeline --pipeline-id $i --profile <CLI_PROFILE_NAME>; sleep 5; done;

Caution: Make sure that you really want to delete all the data pipelines before running this command.

Hope it helps.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
專家
已回答 8 個月前
profile picture
專家
已審閱 1 個月前
  • Do you have any additional questions?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南