Provider. Delete User(String, Boolean) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a user from the membership data source.
public: abstract bool DeleteUser(System::String ^ username, bool deleteAllRelatedData);
public abstract bool DeleteUser (string username, bool deleteAllRelatedData);
abstract member DeleteUser : string * bool -> bool
Public MustOverride Function DeleteUser (username As String, deleteAllRelatedData As Boolean) As Boolean
The name of the user to delete.
true to delete data related to the user from the database;
false to leave data related to the user in the database.
true if the user was successfully deleted; otherwise,
Takes, as input, the name of a user and deletes that user's information from the data source. If
true, then all user data stored in the database for the Roles, Profile, and WebPart personalization is also deleted.