def _empty_bucket(bucket):
 for blob in bucket.list_blobs():
  try:
   blob.delete()
  except exceptions.NotFound:
   pass

def _empty_bucket ( bucket ) : for blob in bucket . list_blobs ( ) : try : blob . delete ( ) except exceptions . NotFound : pass
empty a bucket of all existing blobs .