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 Simple AD directory.

You can use any of the following methods to delete a user:

  • Active Directory Administration Tools

  • Windows PowerShell

Delete a user with Active Directory Administration Tools

  1. Connect to the instance where the Active Directory Administration Tools were installed.

  2. Open the Active Directory Users and Computers tool from the Windows Start menu. There is a shortcut to this tool found 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 showing 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.

Delete a user in Windows PowerShell

  1. Connect to the instance joined to your Active Directory domain as the Active Directory administrator.

  2. Open Windows PowerShell.

  3. Type the following command replacing the username jane.doe with the username of the user you want to delete. For more information on the Remove-ADUser command, see Microsoft documentation.

Remove-ADUser -Identity "jane.doe"