code: def rm(self, path):
          
  
          resp = self._sendRequest("DELETE", path)
          # By documentation server must return 200 "OK", but I get 204 "No Content".
          # Anyway file or directory have been removed.
          if not (resp.status_code in (200, 204)):
              raise YaDiskException(resp.status_code, resp.content)
docs: Delete file or directory.