Last active
November 13, 2018 08:18
-
-
Save abhikhatri/e6dec1965a38fab21892dd6f29173430 to your computer and use it in GitHub Desktop.
Rough Snippet to delete snap in firebase
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
ref.orderByChild('key').equalTo('something').once('value') | |
.then(function (snap) { | |
snap.forEach(function (snap) { | |
if (item.key === '-LTRAB3DKkK4FC765') { | |
snap.remove(); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment