System.Web.Security.Membership.DeleteUser Method

Deletes a user and any related user data from the database.

Syntax

public static bool DeleteUser (string username)

Parameters

username
The name of the user to delete.

Returns

true if the user was deleted; otherwise, false.

Remarks

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0