Windows Server

How to delete OUs (Organisational Unit) or Container in Active Directory

An organizational unit (OU) is a container within the Active Directory in which you can place users, groups, computers objects, and even nexted OUs. You can create organizational units to mirror your organization’s functional or business structure. OU owners are data managers who control a subtree of objects in Active Directory Domain Services (AD DS). For some related content on Active Directory, see the following guides. Active Directory Authentication methods: Kerberos and NTLM, Concept of AD Computer Account, how to create a contact in AD, and for a detailed list of articles on Active Directory, visit the following link.

To delete a container or OU, please follow the steps described below.
– Login to your domain controller or use RSAT. See some articles on RSAT here and how to install RSAT on Windows 10.
– Navigate to Start
→ Administrative tools
→ Active Directory Users and Computers.

Alternatively, you can also launch this from the Tools menu under Server Manager.
– Locate the Organisation Unit you wish to delete. I will first try to delete it without disabling the protection so you could see the kind of error it will prompt.

Click on Yes, it will through an error afterwards because the OU is protected.

As we can see, the OU cannot be deleted because, it is protected against accidental deletion.

To fix this issue,
– Click on View on the menu bar, and then
– Click on Advanced Features.

Navigate to the OU that you want to delete,
– Right-click on it and click on Properties.
– Now right-click on the OU and select properties
– Under the object tab,
– uncheck the “Protect against accidental deletion

As you can see, it has been unchecked “Protect from accidental deletion”.

Now proceed to delete the container once more. This time, no error message will be prompted.

As we can see below, the OU has been deleted.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session. I welcome you to follow me on Twitter and Facebook.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x