IS ti safe to delete an empty OU in active directory?

Frédéric Giguère 46 Reputation points
2021-01-26T15:52:36.08+00:00

Good day

I will start to do a cleanup of our active directory structure. But before I do that, I have a question. I have a good number of OU's that are empty. Some are at the root of AD and I am wondering what are their use because they all are empty.

  • Keys
  • LostAnd Found
  • Managed service accounts
  • NTDS Quotas
  • TPM devices

Is it possible that theses OU's still countains informations that I do not see?

Thank you

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,960 questions
0 comments No comments
{count} votes

Accepted answer
  1. Fan Fan 15,301 Reputation points Microsoft Vendor
    2021-01-27T00:56:34.223+00:00

    Hi,
    For the usage of the default containers , you can refer to the following link:
    https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/5a00c890-6be5-4575-93c4-8bf8be0ca8d8
    When you install Active Directory, these default containers and Organizational Units (OUs) are automatically created.
    Default containers are automatically created and cannot be deleted.

    Best Regards,

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,956 Reputation points MVP
    2021-01-26T15:58:05.59+00:00

    Hi @Frédéric Giguère

    To delete Remove Empty Groups / Empty OUs refer this url.

    If a post helps to resolve your issue, please click the Accept the answer and Click Answered Vote as helpful . By marking a post as Answered and/or Helpful, you help others find the answer faster.

    0 comments No comments

  2. Thameur-BOURBITA 32,596 Reputation points
    2021-01-26T23:28:07.277+00:00

    Hi,

    It can be safe if the script you will use doesn't delete the default OU.
    You can cleanup empty OUs without touching the default OU.


    Please don't forget to mark helpful reply as answer

    0 comments No comments

  3. Frédéric Giguère 46 Reputation points
    2021-01-28T19:12:44.177+00:00

    OK thank you very much for your help.

    I just wanted to be sure that I would not delete something essentials by accident!

    0 comments No comments