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 1, 2020 in AWS by akhtar
• 38,180 points
152 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 1, 2020 by MD
• 95,140 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,140 points
72 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,140 points
46 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,140 points
83 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 1, 2020 in AWS by MD
• 95,140 points
124 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,140 points
109 views