Use DeleteSigningCertificate with an AWS SDK or CLI - AWS Identity and Access Management

Use DeleteSigningCertificate with an AWS SDK or CLI

The following code examples show how to use DeleteSigningCertificate.

CLI
AWS CLI

To delete a signing certificate for an IAM user

The following delete-signing-certificate command deletes the specified signing certificate for the IAM user named Bob.

aws iam delete-signing-certificate \ --user-name Bob \ --certificate-id TA7SMP42TDN5Z26OBPJE7EXAMPLE

This command produces no output.

To get the ID for a signing certificate, use the list-signing-certificates command.

For more information, see Manage signing certificates in the Amazon EC2 User Guide.

PowerShell
Tools for PowerShell

Example 1: This example deletes the signing certificate with the ID Y3EK7RMEXAMPLESV33FCREXAMPLEMJLU from the IAM user named Bob.

Remove-IAMSigningCertificate -UserName Bob -CertificateId Y3EK7RMEXAMPLESV33FCREXAMPLEMJLU

For a complete list of AWS SDK developer guides and code examples, see Using IAM with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.