To remove all links with a child element having a specific value, you will need to extract all the keys ('-KVpQFXnzQkzzrowHxGk', '-KVpQFXnzQkzzrowHxGk' in your case) with an equalTo request, and then remove these links using the remove function.
Here is a sample code.
var ref = firebase.database(); //root reference to your data ref.orderByChild('user_id').equalTo('-KTruPWrYO9WFj-TF8Ft') .once('value').then(function(snapshot) { snapshot.forEach(function(childSnapshot) { //remove each child ref.child(childSnapshot.key).remove(); }); });
source share