code: def remove(self, path, recursive=False, use_sudo=False):
          
          func = use_sudo and run_as_root or self.run
          options = '-r ' if recursive else ''
          func('/bin/rm {0}{1}'.format(options, quote(path)))
docs: Remove a file or directory