The csclean utility only works in Schema version 2 mode. It removes user and resource calendars for users whose status attribute (icsStatus) has been marked as “deleted” by Delegated Administrator.
For Schema version 1, use csuser and cscal to remove all of the calendars for a deleted user.
You must be using Schema version 2.
Calendar Server can be running or stopped.
You must run csclean locally on the machine where Calendar Server is installed.
You must be logged in as the user and group under which Calendar Server is running (such as icsuser and icsgroup) that was specified during installation, or as root.
csclean [-q | -v] [-g graceperiod] clean domain |
The following table describes the csclean utility command options.
Table D–8 csclean Utility Command Options
Remove calendars for all users and resources in sesta.com whose calendar service has been deleted for at least 5 days:
csclean -g 5 clean sesta.com
Remove calendars for all users and resources in all domains whose calendar service has been deleted for at least 10 days:
csclean clean "*"