The database is automatically deregistered from LDAP when the database is dropped, or the owning instance is deregistered from LDAP.
db2 uncatalog ldap database dbname
From a client application, call the db2LdapUncatalogDatabase API.