code: def delete_s3_prefix(bucket: str, prefix: str):
      import boto3
  
      s3 = boto3.resource("s3")
      objects_to_delete = s3.meta.client.list_objects(
          Bucket=bucket, Prefix=prefix
      )
  
      delete_keys = {"Objects": []}
      delete_keys["Objects"] = [
          {"Key": k}
          for k in [
              obj["Key"]
              for obj in objects_to_delete.get("Contents", [])
          ]
      ]
  
      if len(delete_keys["Objects"]) != 0:
          s3.meta.client.delete_objects(
              Bucket=bucket, Delete=delete_keys
          )
  
file_path: autogluon/common/src/autogluon/common/utils/s3_utils.py
imports: import logging
  import os
  import pathlib
  import shutil
  from typing import Dict, List, Optional, Tuple, Union
  from tqdm import tqdm
  from ..loaders.load_s3 import list_bucket_prefix_suffix_contains_s3
label_desc: Use image node_id 4 for calling a global function with example usage: delete_s3_prefix(bucket, prefix) without return types