从 Firebase 身份验证控制台中删除所有用户 [英] Delete all users from firebase auth console
问题描述
是否有一种简单的方法可以从 Firebase 控制台中删除所有注册用户?例如,我在开发环境中创建了一百个用户,现在我想删除所有用户.
Is there an easy way to delete all registered users from firebase console? For example, I created a hundred users from my development environment, and now I want to delete all of them.
推荐答案
firebaser here
我们刚刚发布了 Firebase Admin SDK,它支持管理用例,例如作为删除用户帐户而无需该用户先登录.
We just released the Firebase Admin SDK, which supports administrative use-cases, such as deleting a user account without requiring that user to sign in first.
原始答案
目前 Firebase 身份验证中没有 API 可以删除用户而不要求该用户登录.我们知道这会限制我们 API 的可用性,并且正在努力在未来版本中添加此类功能.但与往常一样,我们不会提供该功能何时可用的具体时间表.
There is currently no API in Firebase Authentication to delete a user without requiring that user to sign in. We know this limits the usability of our API and are working to add such functionality in a future release. But as usual, we don't provide specific timelines for when the feature will be available.
目前您唯一的解决方法是:
For the moment your only work arounds are to:
- 以应用中的每个测试用户的身份登录并从那里删除用户
- 从 Firebase 控制台依次删除每个用户
这篇关于从 Firebase 身份验证控制台中删除所有用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!