cltrash -a purge [ -d days ]
cltrash -a remove [ -d days ] [ -r rootdir ]
To tidy up the global trash properly the cltrash command supports two actions:
In this example the cron entry of all participating systems is identical and the global trash is physically located in the directory /data_adm1/dat/trash. This is why the purge action is only executed if the directory exists on the system (important to check in a clustered environment where the global trash should resists on a cluster package, too).
1.1) trash.cfg configuration file
        #
        # trash.cfg - trash/untrash/cltrash configuration file
        #
        # [00] 15.02.2005 CWa   Initial Version
        #
        #
        # Fileformat:
        #
        #  OPTION=<VALUE>
        #
        # Trash basedir. This directory holds all trashed files. 
        #
        TRASHDIR=/dat/trash/files
        # Logdir. 
        #
        LOGDIR=/dat/trash/logs
1.2) needed cron entries to purge the global trash and remove the trash info files
        [ /data_adm1/dat ]
        [ root@adm_db1_prod ][ksh]: crontab -l 
        :
        #
        # purge trash (see also: cltrash -a remove)
        #
        0 2 * * * [ -d /data_adm1/dat/trash ] && /opt/edrc/bin/cltrash \
          -a purge -d 14 > /dev/null 2>&1
        :
        :
        #
        # remove trash info files (see also: cltrash -a purge)
        #
        0 2 * * * [ -x /opt/edrc/bin/cltrash ] && /opt/edrc/bin/cltrash \
          -a remove -r / -d 14 > /dev/null 2>&1
        :
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.