First, you need a userscript manager. The most popular ones are Tampermonkey (for Chrome, Firefox, Edge, Safari) or Violentmonkey (for Chrome, Firefox, Edge).
Install the browser extension for your preferred manager.
Click the "Install" button for this script on Greasy Fork.
Your userscript manager will open a new tab. Confirm the installation.
How to Use
Navigate to the Authentication > Users page in your Firebase project.
The "Batch User Deleter" control panel will appear at the top of the user list.
(Optional) To prevent certain users from being deleted, enter their email addresses into the input field, separated by commas (e.g., [email protected], [email protected]).
Click the Start Batch Deletion button.
A confirmation dialog will appear. Read the warning and click "OK" to proceed.
The script will now begin deleting users one by one. You can monitor the progress in the status display.
Features
✅ Batch Deletion: Deletes all users currently visible on the page.
🛡️ Exclusion List: Protect important accounts (like admins) from deletion by adding their emails to an exclusion list.
🖥️ Simple UI: Adds a clean and easy-to-use control panel directly onto the Firebase page.
🔄 Status Updates: Provides real-time feedback on the deletion process.
⚠️ Important Notes & Caveats
This process is slow! Because it simulates human clicks, it takes about 2-3 seconds per user. Be patient.
Do not interact with the page while the script is running. Clicking elsewhere can interrupt the process.
The script only deletes users visible on the current page. If you have more than 100 users, you will need to navigate to the next page and run the script again.
This script is provided as-is. Always double-check your exclusion list to avoid accidentally deleting important accounts. There is no undo button!