Mass Delete Firebase Authenticated Users

Posted on May 1, 2020
sudo pip install firebase-admin
import firebase_admin
from firebase_admin import credentials
from firebase_admin import authcred = credentials.Certificate("/Users/lawrence/Projects//.json")
app = firebase_admin.initialize_app(cred)for user in auth.list_users().iterate_all():
print("User ID = " + user.uid)
python firebase_auth_nuke.py
auth.delete_user(user.uid)
import firebase_admin
from firebase_admin import credentials
from firebase_admin import authcred = credentials.Certificate("/Users/lawrence/Projects/StarTender/starme-dev-firebase-adminsdk-7l2d7-6456855c7d.json")
app = firebase_admin.initialize_app(cred)for user in auth.list_users().iterate_all():
print("User ID = " + user.uid)
auth.delete_user(user.uid)
print("Deleted user ID " + user.uid)