Created
November 22, 2018 13:48
-
-
Save NickIliev/c4678d75a3f488a5410fc36ae646d136 to your computer and use it in GitHub Desktop.
Firebase Storage Delete File (NativeScript)
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
deleteFile() { | |
storage.deleteFile({ | |
// optional, can also be passed during init() as 'storageBucket' param so we can cache it | |
bucket: APPSPOT_BUCKET_URL, | |
// the full path of an existing file in your Firebase storage | |
remoteFullPath: 'uploads/images/firebase-storage.png' | |
}).then(() => { | |
console.log("File deleted from Firebase Storage."); | |
}).catch(error => { | |
console.log("File deletion Error: " + error); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment