I'm using AngularFire2 for managing users and I want to find user by their id, remove them and create a new user.
public db: AngularFireDatabase
...
this.db.list('usernames', ref => ref.equalTo(uid)).remove();
This removes all users, rather than the one that has the same id.