0
I got it with the following code:
Query queryRemoverCalendario = mCalendarioDatabaseReference.limitToFirst(1);
queryRemoverCalendario.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot removerCalendarioSnapshot : dataSnapshot.getChildren()) {
removerCalendarioSnapshot.getRef().removeValue();
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
If possible post your code. Already tried
rootRef.child("L7jrJ6DtQWrmZsC4zvT").removeValue();
?– Valdeir Psr
The example shows a game calendar. I know which Child is because I have access to the Firebase console. However, the person responsible for scheduling the games does not have access to the console, so he has no way of knowing Child. I wanted him to have the option to delete a game from the list from a selection in the app.
– Rafael Said