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