Created
February 14, 2019 13:36
-
-
Save rounakdatta/4bdfc1b972e389d01a8c6088c7c54e03 to your computer and use it in GitHub Desktop.
Hack to delete all the user in the Firebase console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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