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
asked 7 months ago271 views
1 Answer
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
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed 24 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