SPFile.DeleteAllPersonalizations method

Deletes all personalization information from theWeb Parts page, home page, or wiki page for the user with the specified ID.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void DeleteAllPersonalizations(
	int userId


Type: System.Int32

A 32-bit integer that specifies the user ID.

Use the UserId property of the SPUserStorage class to get the ID to pass as a parameter for the DeleteAllPersonalizations method.