The DeleteProfile function deletes the user profile and all user-related settings from the specified computer. The caller must have administrative privileges to delete a user's profile.
3/16/2007 8:32:59 AM - -201.25.215.28
.
private static extern int DeleteProfile(string lpSidString, string lpProfilePath, string lpComputerName);
.
int retValue = DeleteProfile(oSid.SidString, null, "SERVER01");
The DeleteProfile function deletes the user profile and all user-related settings from the specified computer. The caller must have administrative privileges to delete a user's profile.