The following code examples show how to use DeleteVirtualMfaDevice
.
- AWS CLI
-
To remove a virtual MFA device
The following
delete-virtual-mfa-device
command removes the specified MFA device from the current account.aws iam delete-virtual-mfa-device \ --serial-number
arn:aws:iam::123456789012:mfa/MFATest
This command produces no output.
For more information, see Deactivating MFA devices in the AWS IAM User Guide.
-
For API details, see DeleteVirtualMfaDevice
in AWS CLI Command Reference.
-
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.