Created
May 28, 2019 12:27
-
-
Save markreale/769f833b3326dfdcbf530243088f9682 to your computer and use it in GitHub Desktop.
Firestore - Deleting an entry (Document) from a Collection
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
db.collection("[YOUR_COLLECTION]").doc("[YOUR_DOCUMENT]").delete().then(function() { | |
console.log("Document successfully deleted!"); | |
}).catch(function(error) { | |
console.error("Error removing document: ", error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment