Deleting cache files

The contents of the source attributes of an object are stored in files in the cache directory, under the database storage root (st_root). When an object transitions to the integrate state, it triggers the source file to be archived. Objects in the integrate, test, sqa, released, and rejected states are archived. The CM administrator can use the ccm clean_cache command to remove these archived cache files on demand and to select specific cache files to remove.

This topic contains steps for Windows® and UNIX®.

Use the command-line interface to delete cache files.

For more information, see the ccm clean_cache command is described in detail in Rational Synergy CLI Help.

Windows

Put your short description here; used for first paragraph and abstract.

Procedure

  1. Ensure that you are working as the CM administrator.
  2. Use the command-line interface to delete cache files.

    The ccm clean_cache command is described in detail in Rational Synergy CLI Help.

  3. Delete all cache files of archived objects that have not been accessed in the last month.

    > ccm clean_cache /c -30:0:0:0

  4. Delete the cache files for all test csrc objects that have not been accessed since June 1.
    > ccm clean_cache /type csrc /status test /cutoff_time "June 1"

UNIX

Procedure

  1. Set user to ccm_admin.
    $ su - ccm_admin
    Password: *****

    If you did not set up CCM_HOME and PATH for user informix during installation, set these environment variables now. See Setting environment variables for UNIX.

  2. Start a session on the database.

    $ ccm start -nogui -d database_path

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

  3. Clean up the cache files.

    For example, delete all cache files of archived objects that have not been accessed in the last month, as follows:

    $ ccm clean_cache -c -30:0:0:0

    Or, delete the cache files for all test csrc objects that have not been accessed since June 1.

    $ ccm clean_cache -type csrc -status test -cutoff_time "June 1"

  4. Exit from the session.

    $ ccm stop
  5. Exit from user ccm_admin.

Feedback