AWS Identity and Access Management
CLI Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

iam-virtualmfadevicedel

Description

Permanently deletes a virtual MFA for a user. For more information about virtual MFA devices, go to Using a Virtual MFA Device in Using AWS Identity and Access Management.

Note

You must deactivate a user's virtual MFA device before you can delete it. For information about deactivating MFA devices, see iam-userdeactivatemfadevice.

Syntax

iam-virtualmfadevicedel -s SERIAL

Options

Name Description Required

-s SERIAL

The serial number for the virtual MFA device to delete.

Type: String

Default: None

Yes

Output

If the command is successful, the output is empty.

Example

The following example deletes the virtual MFA device with the serial number arn:aws:iam::123456789012:mfa/yourMFAname.

PROMPT> iam-virtualmfadevicedel arn:aws:iam::123456789012:mfa/yourMFAname