code: def delete_user_folder(gis, user, folder):
      """deletes the folder if not None (a.k.a. Root) and with certain prefixes"""
      next_batch = user.items(folder=folder)
      if folder and not next_batch:
          if (
              "omProject" in folder["title"]
              or "classify" in folder["title"]
          ):
              print("=== deleting the folder: %s" % folder["title"])
              gis.content.delete_folder(
                  folder["title"], folder["username"]
              )
  
file_path: arcgis-python-api/misc/_common.py
imports: from arcgis.gis import GIS
label_desc: Use image node_id 3 for calling a global function with example usage: delete_user_folder(gis, user, folder) without return types