Membership.DeleteUser Method (String)
Deletes a user and any related user data from the database.
System.Web (in system.web.dll)
static bool DeleteUser (
public static boolean DeleteUser (
public static function DeleteUser (
username : String
) : boolean
The name of the user to delete.
if the user was deleted; otherwise, false
The following code example deletes the currently logged-on user and all related data.
No code example is currently available or this language may not be supported.
Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Supported in: 3.0, 2.0