Show TOC

Removing PCD and UCD Personalization DataLocate this document in the navigation structure

System administrators can remove personalization data from the PCD (Portal Content Directory) and UCD (User Content Directory) by using the Personalization Data Cleanup tool. Adminstrators can also remove PCD personalization from code.

Context

You can remove personalization data for:

  • All applications/objects personalized by all users

  • All applications/objects personalized by a specific user

  • All users who have personalized a specific application/object

  • A specific user who has personalized a specific application/object

You can also remove all unused personalization data by deleting PCD and UCD content and personalization data of users that are no longer in the system. We recommend removing unused personalization data on a periodic basis. The removal of unused personalization data may impact portal performance while the operation is taking place. However, as a result of the cleanup, portal performance may improve.

Procedure

  1. Navigate to Start of the navigation path System Administration Next navigation step Support Next navigation step PCD Tools Next navigation step Personalization Data Cleanup End of the navigation path.
  2. In the personalization data cleanup tool, perform cleanup activities as needed. The following table describes the available options:
    To Do This

    Remove the personalization data of all users for all portal objects

    In the Personalization Data tab, choose Remove.

    Remove the personalization data of all users for all portal applications

    In the Personalization Data tab, choose Remove.

    Remove user personalization data of a specific user

    1. In the Personalization Data tab, from the Search for dropdown list, select User.

    2. In the Search for field, type a user login ID, and choose Go.

      Note

      The asterisk (*) wildcard is supported. For example, entering the search term admin* retrieves all login IDs that start with admin.

    3. In the Users table, select one or more users and choose Remove User Personalization.

    Note

    Deletion of a portal user deletes that user's context in the UCD as well.

    Remove personalization data for a specific user on a specific portal application

    1. In the Personalization Data tab, from the Search for dropdown list, select User.

    2. In the Search for field, type a user login ID, and choose Go.

    3. In the Personalized Applications table, select an application and choose Remove Application Personalization.

    Remove personalization data for a specific user on selected portal objects

    1. In the Personalization Data tab, from the Search for dropdown list, select User.

    2. In the Search for field, type a user login ID, and choose Go.

    3. In the Portal Objects table, select one or more objects and choose Remove Object Personalization.

    Remove personalization for a specific object for all users

    1. In the Personalization Data tab, from the Search for dropdown list, select Object.

    2. Type the object path and choose Go.

      The Personalized Objects table lists the search results.

    3. In the Personalized Objects table, select one or more objects.

    4. Choose Remove Object Personalization.

    Note

    This action is particularly useful when an attribute is defined in the portalapp.xml of a portal component, then is personalized, and then needs to be updated in the portalapp.xml. After the new portal component is deployed, the personalized value is still present in the PCD, and supersedes the new value in the portalapp.xml. Therefore it may be necessary to clean up personalization data to solve problems that are related to a specific user or to a specific object in the portal.

    Remove content and personalization data of all users that are no longer in the system

    In the Unused Personalization Data tab, choose Remove.

    Note

    You can remove PCD personalization from code by performing a personalized lookup (a lookup in which a personalization principal is specified), and then removing some or all of the modifications by calling removeModifications() or removeAttributeModifications() on the IPcdContext object. This removes the personalization for the user specified as the personalization principal.

    These are the same methods for removing delta link modifications when performing a nonpersonalized lookup.

    The following removes all personalization from an object for the current user:

    Hashtable env = new Hashtable();
    
    env.put(Context.INITIAL_CONTEXT_FACTORY,
        IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, request.getUser());
     
    InitialContext iCtx = null;
     
    String myObjectName = "pcd:portal_content/myFolder/myObject";
     
    try {
        iCtx = new InitialContext(env);
     
        IPcdContext myObject = (IPcdContext) iCtx.lookup(myObjectName);
          
        myObject.removeModifications("");
    }
    catch (Exception e) {}