code: def rmmod(module, force=False):
      
      cmd = ['rmmod']
      if force:
          cmd.append('-f')
      cmd.append(module)
      log('Removing kernel module %s' % module, level=INFO)
      return subprocess.check_call(cmd)
docs: Remove a module from the linux kernel