def delete_file(self, blob: Blob):
     try:
         blob.delete()
     except NotFound:
         return False
Exemplo n.º 2
0
 def deleteFromGoogle(sourceFilePath):
     with app.app_context():
         blob = Blob(sourceFilePath, bucket)
         blob.delete()