MembershipProvider.DeleteUser Method (String, Boolean)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Removes a user from the membership data source.
Assembly: System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)
Parameters
- username
-
Type:
System.String
The name of the user to delete.
- deleteAllRelatedData
-
Type:
System.Boolean
true to delete data related to the user from the database; false to leave data related to the user in the database.
For an example of a MembershipProvider implementation, see Implementing a Profile Provider.
.NET Framework
Available since 2.0
Available since 2.0
Show: