Public/ps1/Configuration/FileWatcher/Remove-ApprxrFileWatcherLocation.ps1
|
<##
.SYNOPSIS Removes a file watcher location from the Apprxr configuration. .DESCRIPTION Calls the private Remove-ApprxrFileWatcherLocationEntry function to remove a file watcher location by name and logs the action. .PARAMETER Name The unique name for the location setting to remove. .EXAMPLE Remove-ApprxrFileWatcherLocation -Name 'Location1' Removes the entry for 'Location1' from the file watcher configuration. ##> function Remove-ApprxrFileWatcherLocation { param( [Parameter(Mandatory)] [string]$Name ) # Stop any running watcher jobs for this location using the public function Stop-ApprxrFileWatcherLocation -Name $Name Remove-ApprxrFileWatcherLocationEntry -Name $Name Log "Requested removal of file watcher location: $Name" } |