User Guide
196 Chapter 9 Managing Verity Collections with the mkvdk Utility
Deleting a collection
To delete a collection, use the appropriate command for your operating system. For
example, to remove the collection directory structure and control files on a UNIX
system, use the following command.
rm -r -collection_path
Purging a collection
The following command deletes all documents from a collection, but does not delete
the collection itself.
mkvdk -purge -collection path
Purging in the background
The following command purges the specified collection in the background.
mkvdk -purge -purgeback -collection path
Persistent service
The following command runs mkvdk as a persistent process, so that servicing is
performed repeatedly after num idle seconds.
mkvdk -persist -sleeptime num -collection path
Deleting a Collection
Note that -purge deletes all documents in a collection, but does not delete the
collection itself. To delete a collection, use operating system commands such as the
rm command on UNIX to remove the collection directory structure and control files.
Optimization Keywords
Optimization keywords for the -optimize option are described below.
Keyword Description
maxclean This keyword performs the most comprehensive housekeeping possible, and
removes out-of-date collection files. This optimization is recommended only
when you are preparing an isolated collection for publication. Note that when
using this type, if the collection is being searched, sometimes files get deleted
too early and this affects search results.
maxmerge This keyword performs maximal merging on the partitions to create partitions that
are as large as possible. This creates partitions that can have up to 64000
documents in them.
readonly This keyword makes the collection read only. When used,
mkvdk marks the
collection as read-only and unchanging after the function call is done. This is
appropriate for CD-ROM collections.