public boolean removeCommand(AdHocCommand command) {
        return commands.remove(command.getCode()) != null;
    }
Removes the command from the list of ad-hoc commands supported by this server. The command
will no longer appear in the discoverable items list.

@param command the ad-hoc command to remove.
@return true if the requested command was removed from the list of available commands.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/AdHocCommandManager.java