ASP.NET MVC 5 how to delete a user and its related data in Identity 2.0
I think the classes you’re looking for are the UserManager and the RoleManager. In my opinion they are the better way instead of going against the context directly. The UserManager defines a method RemoveFromRoleAsync which gives you the ability to remove the user (identified by his key) from a given role. It also defines several … Read more