View a markdown version of this page

Deleting an AWS Managed Microsoft AD group - AWS Directory Service

Deleting an AWS Managed Microsoft AD group

Use the following procedure to delete an AWS Managed Microsoft AD group with AWS Directory Service Data in the AWS Management Console, AWS CLI, or AWS Tools for PowerShell.

Important

When you delete a group, all information about the group is removed, including any permissions that group members inherit.

Before you begin, complete the following:
AWS Management Console

You can delete an AWS Managed Microsoft AD group in the AWS Management Console.

To delete an AWS Managed Microsoft AD group with the AWS Management Console
  1. Open the Directory Service console at https://console.aws.amazon.com/directoryservicev2/.

  2. From the navigation pane, choose Active Directory, and then choose Directories. You're directed to the Directories screen where you can view a list of directories in your AWS Region.

  3. Choose a directory. You're directed to the Directory details screen.

  4. Choose Group. The tab shows a list of groups in your AWS Region.

  5. Choose the group that you want to delete. To find groups, enter the group name in the search box under the Groups section. You're directed to the Group details screen.

  6. Choose Delete group. A dialog box appears where you can choose Confirm to delete the group.

AWS CLI

The following describes how to format a request that deletes an AWS Managed Microsoft AD group with the AWS Directory Service Data CLI.

To delete an AWS Managed Microsoft AD group with the AWS CLI
  • Open the AWS CLI, and run the following command with your Directory ID and group name:

aws ds-data delete-group --directory-id d-1234567890 --sam-account-name "your-group-name"

For more information, see delete-group.

PowerShell

The following describes how to format a request that deletes an AWS Managed Microsoft AD group with the AWS Tools for PowerShell.

To delete an AWS Managed Microsoft AD group with the AWS Tools for PowerShell
  • Open PowerShell, and run the following command with your Directory ID and group name:

Remove-DSDGroup -DirectoryId d-1234567890 -SAMAccountName "your-group-name"

For more information, see Remove-DSDGroup.