Created
September 21, 2021 00:49
-
-
Save Leticia-Carraro/f183a3f3d12cb03c0e75dc590bcdaac9 to your computer and use it in GitHub Desktop.
Essa função apaga os blobs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''''É 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