code: def prune_and_delete_bucket(bucket):
      """Deletes all the content and then deletes bucket
  
      Should be used with care -- no confirmation requested
      """
      bucket.delete_keys(bucket.list_versions(""))
      # this one doesn't work since it generates DeleteMarkers instead ;)
      # for key in b.list_versions(''):
      #    b.delete_key(key)
      bucket.delete()
      lgr.info("Bucket %s was removed", bucket.name)
  
imports: import mimetypes
  from os.path import splitext
  import re
  from datalad.support.network import urlquote, URL
  import logging
  import datalad.log
  from datalad.support.exceptions import CapturedException, DownloadError, AccessDeniedError, AccessPermissionExpiredError, AnonymousAccessDeniedError
  from datalad.utils import try_multiple_dec
  from urllib.request import urlopen, Request
label_desc: Use image node_id 7 for calling a global function with example usage: prune_and_delete_bucket(bucket) without return types