Skip to content

Instantly share code, notes, and snippets.

@rounakdatta
Created February 14, 2019 13:36
Show Gist options
  • Save rounakdatta/4bdfc1b972e389d01a8c6088c7c54e03 to your computer and use it in GitHub Desktop.
Save rounakdatta/4bdfc1b972e389d01a8c6088c7c54e03 to your computer and use it in GitHub Desktop.
Hack to delete all the user in the Firebase console
var intervalId;
var clearFunction = function() {
if ($('[aria-label="Delete account"]').size() == 0) {
console.log("interval cleared")
clearInterval(intervalId)
return
}
$('[aria-label="Delete account"]')[0].click();
setTimeout(function () {
$(".md-raised:contains(Delete)").click()
}, 1000);
};
intervalId = setInterval(clearFunction, 3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment