how do I remove this specific node in my database as shown in this picture below? (the nickname will be different since I'm just testing it, if anyone confuses)

I've tried
const roomRef = firebase.database().ref(`allRooms/${rooms}`);
roomRef.orderByChild('nickname').equalTo(`${username}`).once('value',(snapshot)=> {
snapshot.ref.remove(); })
But it just delete all of my nodes in that room, thank you