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
gefragt vor 8 Monaten284 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 8 Monaten
profile picture
EXPERTE
überprüft vor einem Monat
  • Do you have any additional questions?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen