How to delete a distribution in Cloudfront

0 votes

Hi Team,

I have some distributions in Cloudfront. I want to delete one distribution from the command line. How can I do that?

Nov 2, 2020 in AWS by akhtar
• 38,260 points
1,968 views

1 answer to this question.

0 votes

Hi@akhtar,

Before you can delete a distribution, you must disable it. To disable a distribution, use the update-distribution command. After you disable, you can delete the distribution by using the below command.

$ aws cloudfront delete-distribution --id EDFDVBD6EXAMPLE --if-match E2QWRUHEXAMPLE
answered Nov 2, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
1 answer

How to delete a CloudFront public key?

Hi@akhtar, You can delete your Cloudfront public key ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,460 points
946 views
0 votes
1 answer

How to remove tags from a CloudFront distribution?

Hi@akhtar, The following example removes two tags from ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,460 points
665 views
0 votes
1 answer

How to delete a branch in AWS CodeCommit?

Hi@akhtar, You can delete a branch from a repository ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,460 points
1,161 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to creates a new origin access identity in Cloudfront?

Hi@akhtar, If you're using Amazon S3 for your ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,460 points
737 views
0 votes
1 answer

How to delete an origin access identity in Cloudfront?

Hi@akhtar, You can delete your origin access identity ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,460 points
4,105 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP