Skip to content

Delete Virtual Mfa Device

iam_delete_virtual_mfa_device R Documentation

Deletes a virtual MFA device

Description

Deletes a virtual MFA device.

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

Usage

iam_delete_virtual_mfa_device(SerialNumber)

Arguments

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: =,.@:/-

Value

An empty list.

Request syntax

svc$delete_virtual_mfa_device(
  SerialNumber = "string"
)

Examples

## 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"
)

## End(Not run)