Remove multiple CloudFront distributions with “aws cli”

Originally published at: https://sweetops.com/sub/remove-multiple-cloudfront-distributions-with-aws-cli/

If you are working with AWS CloudFront, you might have a large number of CloudFront distributions sitting there. It’s not easy to remove them. You have to disable each CloudFront distribution first, wait for a half-hour, then remove it. This post shows you how to automate this process in the command line.