Delete a user - Amazon Directory Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Delete a user

Use the following procedure to delete a user with an EC2 Windows instance that is joined to your Amazon Managed Microsoft AD directory.

You can also use Windows Powershell commands to remove users. For more information, see Remove-ADUser in Windows Server 2022 PowerShell documentation.

To delete a user
  1. Connect to the instance where the Active Directory Administration Tools were installed.

  2. Open the Active Directory Users and Computers tool. There is a shortcut to this tool in the Windows Administrative Tools folder.

    Tip

    You can run the following from a command prompt on the instance to open the Active Directory Users and Computers tool box directly.

    %SystemRoot%\system32\dsa.msc
  3. In the directory tree, select the OU containing the user that you want to delete (for example, Corp\Users).

    
                    Active Directory Users and Computers tool - example OU structure.
  4. Select the user you wish to delete. On the Action menu, choose Delete.

  5. A dialog box will appear prompting you to confirm you want to delete the user. Choose Yes to delete the user. This permanently deletes the selected user.

Deleted users are stored temporarily in the AD Recycle Bin. For more information about the AD Recycle Bin, see The AD Recycle Bin: Understanding, Implementing, Best Practices, and Troubleshooting in Microsoft's Ask the Directory Services Team blog.