pre_collection_delete_script

Background

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.

Setting the key

Set this configuration key in the server configuration.

Use the configuration key editor to add or edit the pre_collection_delete_script key, and set the value. This can be set to any valid String value.

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