Deleting an OU
Use this recipe to delete an OU.
Getting ready
To delete an OU, sign in with an account that is a member of the Domain Admins group or has delegated privileges to delete OUs.
OUs are protected from accidental deletion by default. When you try to delete an OU that is protected from accidental deletion, you'll get an Access denied error. In this case, uncheck the Protected from Accidental Deletion checkbox from the OU's properties.
Note
Unless you create OUs using csvde.exe
or ldifde.exe
, they are protected from accidental deletion by default.
How to do it...
This recipe shows three ways to delete an OU:
- Using the Active Directory Administrative Center
- Using the command line
- Using Windows PowerShell
Using the Active Directory Administrative Center
To delete an OU using the Active Directory Administrative Center, perform the following steps:
- Press Start.
- Search for Active Directory Administrative Center...