code: public void clearCommands() throws DevFailed {
          for (final CommandImpl cmdImpl : dynamicCommands.values()) {
              deviceImpl.removeCommand(cmdImpl);
          }
          dynamicCommands.clear();
      }
docs: Remove all dynamic commands
  
  @throws DevFailed