Question : Delete all asp.net users with applicationId = xx

how do remove all asp.net users where application id = xx



Answer : Delete all asp.net users with applicationId = xx

Deleting all users and related data from a site using ASP.NET authentication is fairly simple. Useful if copying a database and you want to remove all the users, but keep the structure and other data (e.g. user content) intact.

Delete all users:
foreach (MembershipUser u in Membership.GetAllUsers())
{
 Membership.DeleteUser(u.UserName, true);
}
Random Solutions  
 
programming4us programming4us