code: def unlink(self, pathobj):
          
  
          # TODO: Why do we forbid remove folder?
          # if stat.is_dir:
          #     raise OSError(1, "Operation not permitted: '%s'" % str(pathobj))
  
          url = str(pathobj)
          text, code = self.rest_del(url, session=pathobj.session, verify=pathobj.verify,
                                     cert=pathobj.cert)
  
          if code not in [200, 202, 204]:
              raise RuntimeError("Failed to delete file: %d '%s'" % (code, text))
docs: Removes a file