code: def _delete_s3_fn(self, key: str, recursive: bool = False):
      if recursive:
          response = self.s3_client.list_objects_v2(
              Bucket=self.bucket, Prefix=key
          )
          for object in response["Contents"]:
              self.s3_client.delete_object(
                  Bucket=self.bucket, Key=object["Key"]
              )
      else:
          self.s3_client.delete_object(Bucket=self.bucket, Key=key)
  
imports: import os
  import shutil
  import sys
  import tempfile
  from typing import Optional
  import boto3
  from google.cloud import storage
  from ray_release.aws import RELEASE_AWS_BUCKET
  from ray_release.cluster_manager.cluster_manager import ClusterManager
  from ray_release.exception import FileDownloadError, FileUploadError
  from ray_release.file_manager.file_manager import FileManager
  from ray_release.job_manager import JobManager
  from ray_release.logger import logger
  from ray_release.util import exponential_backoff_retry, generate_tmp_cloud_storage_path, S3_CLOUD_STORAGE, GS_CLOUD_STORAGE, GS_BUCKET
label_desc: Use image node_id 9 for calling the JobFileManager obj's underlying member method code with example usage: obj._delete_s3_fn(key, recursive) without return types