[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Deleting all directories



I believe you want this

ldapdelete -D "your administrative dn" -r "top dn to delete"

the -r does a recursive delete from the dn on down.

Jason

>
> Does anyone know of a simple way to delete all entries for a given DN. I
> have tried using a wildcard with ldapdelete, but it didn't seem
> to work. My
> application is that I need to re-build my ldap every evening using an ldif
> file created automatically from a master database. Currently I just delete
> the ldap database files, restart the daemon, and import the ldif
> file. I was
> looking for a more eloquent solution.
>
> Thanks,
> Mike
>
>
>