DirectoryWatcher.Release
------------------------

Releases directory watcher.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DirectoryWatcher](component_DirectoryWatcher.md) | [7.1](newinversion71.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "DirectoryWatcher.Release"; Watcher ) 

**MBS**( **"DirectoryWatcher.Release";** /\* Releases directory watcher. \*/  
**$Watcher**) /\* The watcher reference number. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Watcher | The watcher reference number. | $watcher |

### Result

Returns OK or error.

### Description

Releases directory watcher.  
This will free all memory used and stops the checks.  
### See also

- [DirectoryWatcher.Create](DirectoryWatcherCreate.md)
- [DirectoryWatcher.GetEvaluate](DirectoryWatcherGetEvaluate.md)
- [DirectoryWatcher.GetFileName](DirectoryWatcherGetFileName.md)
- [DirectoryWatcher.NextChange](DirectoryWatcherNextChange.md)
- [DirectoryWatcher.ReleaseAll](DirectoryWatcherReleaseAll.md)
- [DirectoryWatcher.SetEvaluate](DirectoryWatcherSetEvaluate.md)
- [DirectoryWatcher.SetFileName](DirectoryWatcherSetFileName.md)

### Release notes

- **Version 7.4**
    - Added [DirectoryWatcher.ReleaseAll](http://www.mbsplugins.eu/DirectoryWatcherReleaseAll.shtml).

This function checks for a license.

Created 5th March 2017 , last changed 5th March 2017

  
[DirectoryWatcher.NextChange](DirectoryWatcherNextChange.md) - [DirectoryWatcher.ReleaseAll](DirectoryWatcherReleaseAll.md)

[HTML Version](DirectoryWatcherRelease.shtml)