Created
May 7, 2020 00:04
-
-
Save hiranya911/1e59718e4a979975b1fadd346b636531 to your computer and use it in GitHub Desktop.
This file contains 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
const admin = require('firebase-admin'); | |
// Usage: node delete_user.js <email> | |
const app = admin.initializeApp(); | |
const email = process.argv[2]; | |
admin.auth().getUserByEmail(email) | |
.then((user) => { | |
return admin.auth().deleteUser(user.uid); | |
}) | |
.then(() => { | |
return app.delete(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment