How to delete a CloudFront public key

0 votes

Hi Team,

I have created a CloudFront public key in AWS. Now I don't need that key. How can I delete the Cloudfront public key from the command line? 

Nov 2, 2020 in AWS by akhtar
• 38,170 points
78 views

1 answer to this question.

0 votes

Hi@akhtar,

You can delete your Cloudfront public key from the command line. The following example deletes the CloudFront public key with the ID. To delete a public key, you must have its ID and ETag.

$ aws cloudfront delete-public-key --id KDFB19YGCR002 --if-match E2QWRUHEXAMPLE
answered Nov 2, 2020 by MD
• 95,160 points

Thank you so much your site has nice content. 

Related Questions In AWS

0 votes
1 answer

How to create Cloudfront public key?

Hi Team, The following example creates a CloudFront ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,160 points
445 views
0 votes
3 answers
0 votes
2 answers
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to delete a key pair using Boto3?

Hi@akhtar, You can delete a key pair using ...READ MORE

answered Oct 8, 2020 in AWS by MD
• 95,160 points
111 views
0 votes
1 answer

How to delete a distribution in Cloudfront?

Hi@akhtar, Before you can delete a distribution, you ...READ MORE

answered Nov 1, 2020 in AWS by MD
• 95,160 points
167 views