Skip to content

Instantly share code, notes, and snippets.

@drumnation
Created December 19, 2021 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drumnation/61871b09e6c8d8237edd2ac1f215ef14 to your computer and use it in GitHub Desktop.
Save drumnation/61871b09e6c8d8237edd2ac1f215ef14 to your computer and use it in GitHub Desktop.
erase firebase auth users from browser console
// Try this code for the latest Firebase update. Open the console, paste this code and hit enter!!!
setInterval(() => {
document.getElementsByClassName('edit-account-button mat-focus-indicator mat-menu-trigger mat-icon-button mat-button-base')[0].click()
let deleteButtonPosition = document.getElementsByClassName('mat-focus-indicator mat-menu-item ng-star-inserted').length - 1
document.getElementsByClassName('mat-focus-indicator mat-menu-item ng-star-inserted')[deleteButtonPosition].click()
document.getElementsByClassName('confirm-button mat-focus-indicator mat-raised-button mat-button-base mat-warn')[0].click()
}, 1000)
// https://stackoverflow.com/questions/38808712/delete-all-users-from-firebase-auth-console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment