Deletes the specified user account, and optionally deletes all profile data that is related to that user account.
Assembly: WebMatrix.WebData (in WebMatrix.WebData.dll)
- Type: System.String
The user name.
- Type: System.Boolean
true to delete profile data that is related to the user, or false to retain data that is related to the user.
Return ValueType: System.Boolean
true if the user account was deleted; otherwise, false.
This method deletes the entry in the membership account table (by default, webpages_Membership). If deleteAllRelatedData is true, all user data that is stored in the user table is also deleted.