We use the ASP.NET profile subsystem to associate key-value pairs of information with users.
I am implementing functionality for the deletion of users.
I have been using the ProfileManager.DeleteProfile(string userName)
method, but I have noticed that this leaves a row in the aspnet_Users table in the aspnetdb
database we use to store the profile information.
Clearly, I could manipulate the database directly, but I am reluctant to do so.
What is the best way to ensure all information assocaited with a user is deleted from the aspnetdb
?
PS: there is a tantalising Membership.DeleteUser(string userName, bool deleteEverything)
method, but this returns a database connection error. A web.config issue?