I am debating whether or not I should launch my app using my test project on firebase. Its works fine the only thing is that there are 400 users in the athentication which I cant remove.
Question:
If I chose to launch my app with my current DB (which has like 400 test users) would I come across any sort of problem (of course I would delete any existing data in DB and storage)? And 2 is it easy to switch to a new project shortly after?
What I am currently testing:
const deleteAllUsers = async (nextPageToken?) => {
// List batch of users, 10 at a time.
const listUsersResult = await admin.auth().listUsers(10, nextPageToken);
listUsersResult.users.forEach(async userRecord => {
await admin.auth().deleteUser(userRecord.uid);
console.log('Successfully deleted user');
});
if (listUsersResult.pageToken) {
// Wait to delete each set of users to abide by Firebase timeout
setTimeout(() => deleteAllUsers(listUsersResult.pageToken), 2000);
} else {
console.log('no more users found');
}
};
await deleteAllUsers();