By: David van Hoose named 28 Feb 2022 at 1:50 p.m. CST

2 Responses
David van Hoose gravatar
I am trying to mass delete users using ldapdelete using a file constructed with the dn's. I tried deleting a sampling of users; however, executing the command I receive the following. > DELETE operation failed Result Code: 66 (Not Allowed on Non-Leaf) Additional Information: The entry 'inum=@!27F4.FE38.1934.8E70!0001!CFB0.2A48!0000!D728.F531.75A6.9450,ou=people,o=@!27F4.FE38.1934.8E70!0001!CFB0.2A48,o=gluu' cannot be removed because it has subordinate entries The command I execute is: ``` /opt/opendj/bin/ldapdelete --port 4444 --hostname localhost --bindDN "cn=Directory Manager" --useSSL --bindPasswordFile ~/.ldappw --trustAll --filename sample.txt ``` Do I need to specify --deleteSubtree or have I missed something else? Best Regards, David

By Aliaksandr Samuseu staff 28 Feb 2022 at 3:18 p.m. CST

Aliaksandr Samuseu gravatar
Hi, David. >Do I need to specify --deleteSubtree or have I missed something else? Yes, please. User entries may have subordinate entries so if your particular version of the tool supports subtree removal, you could use it.

By David van Hoose named 28 Feb 2022 at 5:28 p.m. CST

David van Hoose gravatar
@Aliaksandr.Samuseu, Thank you! I successfully deleted the intended users. Best Regards, David