Skip to content

IAM  >  Operations  >  delete_group

delete_group

Operation

delete_group async

delete_group(input: DeleteGroupInput, plugins: list[Plugin] | None = None) -> DeleteGroupOutput

Deletes the specified IAM group. The group must not contain any users or have any attached policies.

Parameters:

Name Type Description Default
input DeleteGroupInput

An instance of DeleteGroupInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteGroupOutput

An instance of DeleteGroupOutput.

Input

DeleteGroupInput dataclass

Bases: _SerdeShape

Dataclass for DeleteGroupInput structure.

Attributes

group_name class-attribute instance-attribute
group_name: str | None = ...

The name of the IAM group 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: _+=,.@-

Output

DeleteGroupOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteGroupOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.