How to delete a node in firebase, NOT through the web interface?

somebody densely worked with firebase? don't understand how to remove node NOT using the web interface and using client js. Here's an example how I create the node:

var messagesRef = new Firebase('http://__________.firebaseio.com/');
var item__name = $('#item__name').val();
messagesRef.push({
 item__name: item__name,
})
messagesRef.limit(10).on('child_added', function(snapshot) {
 var message = snapshot.val();
 messagesRef.limit(10).on('child_added', function(snapshot) {
 var message = snapshot.val();
 $('<div class="item" ' + message.item__name ").appendto($('#items__wrapper')); }); });< code><br><br>
On good it is necessary somehow to get the key node, record it in an attribute of the created block and use it to delete, but I don't even know how this key to =/</div>
June 27th 19 at 15:10

Find more questions by tags FirebaseJavaScriptjQuery