Deleting a Group

You can delete a group of users in you account that you no longer need. You can the reuse the name of the group for another new group.

This action does not delete users or policies, as you need to delete them individually. For more information, Deleting a User or Deleting a Managed Policy.

Deleting a Group Using OSC CLI

See the DeleteGroup command sample in the documentation of the EIM API.

Deleting a Group Using AWS CLI

Before you begin:

To delete a group, use the delete-group command following this syntax:

Request sample
$ aws iam delete-group \
    --profile YOUR_PROFILE \
    --group-name GROUP_NAME \
    --endpoint https://eim.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • group-name: The name of the group you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The specified group is deleted from your account.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.