delete all data pipeline using aws cli


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?

asked 7 months ago255 views
1 Answer

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.


profile pictureAWS
answered 7 months ago
profile picture
reviewed 14 days ago
  • Do you have any additional questions?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions