0

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.

The database looks like this - enter image description here What am I doing wrong?

Chris Edgington
  • 2,937
  • 5
  • 23
  • 42
Volodymyr Humeniuk
  • 3,411
  • 9
  • 35
  • 70

0 Answers0