SPWebPartCollection.DeleteAllPersonalizations method

NOTE: This API is now obsolete.

Obsolete. Deletes all personalizations by all users from the collection.

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

[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public void DeleteAllPersonalizations()

The DeleteAllPersonalizations method removes only the personalizations of the current user if the collection pertains to a single user. Otherwise, this method removes personalizations for all users.