Deleting obsolete product files

Use the ccm delete command to delete one or more obsolete products that are based on a set of selection criteria.

Use this command to reclaim disk space that is used by obsolete products. You can use a query to select the files to delete.

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.

  2. Run a query to find all products that are not used in any projects.

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

  3. Delete the object versions.

    > ccm delete @

    You can create a batch file that contains commands such as ccm query and ccm delete. Then, you can use the Scheduler to automate the product file deletion.

  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. Run a query to find all objects to delete.

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

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

  3. Delete the object versions.

    $ ccm delete @

    You can create a script that contains the ccm query and ccm delete commands so that you can run the cleanup regularly.

  4. Exit the session.

    $ ccm stop


Feedback