code: def process_delete_records(delete_records):
      
      for rec in delete_records:
          arn = f"arn:aws:s3:::{rec['detail']['requestParameters']['bucketName']}"
  
          # Need to check if the event is NEWER than the previous event in case
          # events are out of order. This could *possibly* happen if something
          # was deleted, and then quickly re-created. It could be *possible* for the
          # deletion event to arrive after the creation event. Thus, this will check
          # if the current event timestamp is newer and will only delete if the deletion
          # event is newer.
          try:
              LOG.debug(f'[-] Deleting bucket: {arn}')
              model = create_delete_model(rec)
              model.save(condition=(CurrentS3Model.eventTime <= rec['detail']['eventTime']))
              model.delete()
  
          except PynamoDBConnectionError as pdce:
              LOG.warning(f"[?] Unable to delete bucket: {arn}. Either it doesn't exist, or this deletion event is stale "
                          f"(arrived before a NEWER creation/update). The specific exception is: {pdce}")
docs: Process the requests for S3 bucket deletions