For the complete documentation index, see llms.txt. This page is also available as Markdown.

WatcherShutdown

Stops and removes a registered watcher from the watcher registry.

This is the destructive single-watcher lifecycle operation. After this call, the watcher is no longer registered and must be recreated before use.

Method Signature

WatcherShutdown(name=[string])

Arguments

Argument
Type
Required
Description
Default

name

string

true

The unique watcher name to shut down.

Examples

Shutdown a file watcher by name

watcherNew( "shutdownWatcher", getTempDirectory() );
watcherShutdown( "shutdownWatcher" );
writeOutput( "shutdown" );

Result: shutdown

Last updated

Was this helpful?