Deleting obsolete product files

Use the ccm collapse command to delete one or more obsolete products based on a set of selection criteria. Use this command to reclaim disk space used by obsolete products. You can use a query to select the files to delete.

This topic contains steps for Windows and UNIX.

Windows

Procedure

  1. Start a Rational® Synergy session from the command line as user ccm_admin.

    > ccm start /d \\loon\ccmdb\testrme /r ccm_admin

    You must be working as the CM administrator to perform this operation.

  2. Query for all products not used in any projects.

    > ccm query "is_product=TRUE and not is_bound()"

  3. Collapse the object versions.

    > ccm collapse @

    Alternatively, you might develop a batch file consisted of commands such as query and collapse, and then automate product file deletion using the Scheduler.

  4. Change back to your previous role.

UNIX

Procedure

  1. Start a Rational Synergy session from the command line as user ccm_admin.

    For example, start a session on the testrme database as follows:

    $ ccm start -d /vol/hydra/ccmdb/testrme -r ccm_admin

    For InformixIf you are prompted to enter a password, you are connecting to a client session across a firewall. You must enter your password to continue.

  2. Query for all objects to delete.

    For example, query from the command line for all products not used in any projects, as follows:

    $ ccm query 'is_product=TRUE and not is_bound()'

  3. Collapse the object versions.

    $ ccm collapse @

    You could create a script containing these commands so that you can perform the cleanup regularly.

  4. Exit from the session.

    $ ccm stop


Feedback