code: def deleteFolder(self):
          
          if self.currentFolder is not None and \
             self.currentFolder['id'] != None:
              url = "%s/delete" % self.location
              params = {
                  "f" : "json"
              }
              res = self._post(url=url,
                                   param_dict=params,
                                   securityHandler=self._securityHandler,
                                   proxy_port=self._proxy_port,
                                   proxy_url=self._proxy_url)
              self._folders = None
              self.currentFolder = None
              self.refresh
              return res
  
          else:
              return "Cannot delete root folder."
docs: The delete user folder operation (POST only) is available only on
          the user's non-root folders. The user's root folder cannot be
          deleted.
          Deleting a folder also deletes all items that it contains (both the
          items and the links are removed).