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>
To deregister a database from LDAP from a client application, call the db2LdapUncatalogDatabase API.