Deletes a virtual MFA device.
iam_delete_virtual_mfa_device(SerialNumber)
[required] The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
svc$delete_virtual_mfa_device( SerialNumber = "string" )
You must deactivate a user\'s virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice.
# NOT RUN {
# The following delete-virtual-mfa-device command removes the specified
# MFA device from the current AWS account.
svc$delete_virtual_mfa_device(
SerialNumber = "arn:aws:iam::123456789012:mfa/ExampleName"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab