Removes a child context with the specified name from this context together with any attributes associated with that name. If the specified context does not exist, but intervening contexts do exist, then the operation is is considered to succeed.
Care must be taken with composite names crossing multiple naming systems. A composite name containing a name component which is bound to an object in a different naming system cannot be used to destroy that name subcontext because the subcontext is not of the same type as the context containing the binding. Unbind()
can be used to destroy the binding of the specified name in this context to the object in the other naming system. To remove the context object in the other naming system, first obtain a context belonging to the other naming system, then use destroySubcontext()
on that context.
@param n the name of the subcontext to destroy
@throws NamingException if an error occurs.