I'm developing and application using angular 4 and firebase. In this I'm giving access to the user with a login (email and password) and as guest (using anonymous auth), but I want to delete the user if the user is a guest (anonymous auth user) when he logs out of the application.
How can I delete a user from firebase auth, not from the realtime database or the firestore database, from the auth section of firebase?