Skip to content

Instantly share code, notes, and snippets.

@fractos
Created July 12, 2015 17:28
part 4 deleting a list of users from mongodb
static void DeleteUsers(IList<User> users)
{
using (IUserStore userStore = new MongoDBUserStore(ConnectionString, DatabaseName, CollectionName))
{
userStore.Start();
foreach (User user in users)
{
userStore.Delete(user);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment