code: def delete_items(gis, user):
      """deletes the user items"""
      folders = [None] + user.folders
      for folder in folders:
          print("=== deleting inside folder: %s" % folder)
          for item in user.items(folder=folder, max_items=1023):
              delete_depending_items(item)
          delete_user_folder(gis, user, folder)
      print("=== finished deleting items owned by " + user.username)
  
file_path: arcgis-python-api/misc/_common.py
imports: from arcgis.gis import GIS
label_desc: Use image node_id 4 for calling a global function with example usage: delete_items(gis, user) without return types