pre_collection_delete_script

Name of the pre-delete hook script

Key: pre_collection_delete_script
Type: String
Can be set in: global.cfg

Description

This option specifies the location of the script to execute when a collection is deleted. Note that only a single script path will be accepted; specifying additional arguments or a shell literal will result in an error, which will block collection deletion until it is resolved.

When a collection is deleted, the script will be called with the following arguments:

collection_name

Name of the collection that is being deleted.

Default Value

There’s no collection delete hook by default.

Examples

Call a specific collection delete hook script

pre_collection_delete_script=$SEARCH_HOME/bin/my-collection-delete-hook.pl

See Also