code: public synchronized void removeCommand(final CommandImpl command) throws DevFailed {
          if (!command.getName().equalsIgnoreCase(INIT_CMD)) {
              pollingManager.removeCommandPolling(command.getName());
              commandList.remove(command);
          }
  
      }
docs: Remove a command
  
  @param command
  @throws DevFailed