iam_delete_user: Deletes the specified IAM user

Description Usage Arguments Details Request syntax Examples

View source: R/iam_operations.R

Description

Deletes the specified IAM user. Unlike the AWS Management Console, when you delete a user programmatically, you must delete the items attached to the user manually, or the deletion fails. For more information, see Deleting an IAM User. Before attempting to delete a user, remove the following items:

Usage

1
iam_delete_user(UserName)

Arguments

UserName

[required] The name of the user to delete.

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: \_+=,[email protected]

Details

Request syntax

1
2
3
svc$delete_user(
  UserName = "string"
)

Examples

1
2
3
4
5
# The following command removes the IAM user named Bob from the current
# account.
svc$delete_user(
  UserName = "Bob"
)

paws.security.identity documentation built on Jan. 14, 2020, 5:08 p.m.