naming/src/main/java/org/jboss/as/naming/util/NamingUtils.java
public static void unbind(Context ctx, String name) throws NamingException {
        unbind(ctx, ctx.getNameParser("").parse(name));
    }
public static void unbind(Context ctx, String name) throws NamingException {
        unbind(ctx, ctx.getNameParser("").parse(name));
    }
public static void unbind ( Context ctx , String name ) throws NamingException { unbind ( ctx , ctx . getNameParser ( "" ) . parse ( name ) ) ; }
Unbinds a name from ctx, and removes parents if they are empty

@param ctx  the parent JNDI Context under which the name will be unbound
@param name The name to unbind
@throws NamingException for any error
Unbinds a name from ctx and removes parents if they are empty