Use DeleteSigningCertificate with a 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-certificatecommand deletes the specified signing certificate for the IAM user namedBob.aws iam delete-signing-certificate \ --user-nameBob\ --certificate-idTA7SMP42TDN5Z26OBPJE7EXAMPLEThis command produces no output.
To get the ID for a signing certificate, use the
list-signing-certificatescommand.For more information, see Manage signing certificates in the Amazon EC2 User Guide.
-
For API details, see DeleteSigningCertificate
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example deletes the signing certificate with the ID
Y3EK7RMEXAMPLESV33FCREXAMPLEMJLUfrom the IAM user namedBob.Remove-IAMSigningCertificate -UserName Bob -CertificateId Y3EK7RMEXAMPLESV33FCREXAMPLEMJLU-
For API details, see DeleteSigningCertificate in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This example deletes the signing certificate with the ID
Y3EK7RMEXAMPLESV33FCREXAMPLEMJLUfrom the IAM user namedBob.Remove-IAMSigningCertificate -UserName Bob -CertificateId Y3EK7RMEXAMPLESV33FCREXAMPLEMJLU-
For API details, see DeleteSigningCertificate in AWS Tools for PowerShell Cmdlet Reference (V5).
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.