0

I added these roles in my code.

            if (!Roles.RoleExists("Administrators"))
                Roles.CreateRole("Administrators");

            //create intern roles if they don't exist
            if (!Roles.RoleExists("Intern"))
                Roles.CreateRole("Intern");

Everything works just fine with my app in IIS. However, now I want to remove both of these roles. Is there a way to remove them?

I tried to recycle my web app in IIS, didn't seem to work.

Where are the roles stored when they are first created? just curious.

Please advise.

Thanks

tereško
  • 58,060
  • 25
  • 98
  • 150
doglin
  • 1,651
  • 4
  • 28
  • 38

1 Answers1

0

this has been answered here

Roles.RemoveUserFromRoles
Community
  • 1
  • 1
awright18
  • 2,255
  • 2
  • 23
  • 22