Skip to content

Instantly share code, notes, and snippets.

@Leticia-Carraro
Created September 21, 2021 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leticia-Carraro/f183a3f3d12cb03c0e75dc590bcdaac9 to your computer and use it in GitHub Desktop.
Save Leticia-Carraro/f183a3f3d12cb03c0e75dc590bcdaac9 to your computer and use it in GitHub Desktop.
Essa função apaga os blobs
''''É uma boa prática apagar os blobs após eles deixarem de ser necessários para o noso trabalho'''
def delete_blob(nome_bucket, nome_blob):
storage_client = storage.Client()
bucket = storage_client.get_bucket(nome_bucket)
blob = bucket.blob(nome_blob)
blob.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment