Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteUserCommand

Deletes the specified IAM user. Unlike the Amazon Web Services 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:

example

Use a bare-bones client and the command you need to make an API call.

import { IAMClient, DeleteUserCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, DeleteUserCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const command = new DeleteUserCommand(input);
const response = await client.send(command);
see

DeleteUserCommandInput for command's input shape.

see

DeleteUserCommandOutput for command's response shape.

see

config for IAMClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeleteUserCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteUserCommandInput, DeleteUserCommandOutput>