mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
20 lines
739 B
Markdown
20 lines
739 B
Markdown
|
|
# Flush Icinga Agent API Directory
|
||
|
|
|
||
|
|
In some cases it might be helpful or required to flush the local Icinga Agent API directory from the disk. To assist with this process, there is a simple Cmdlet available.
|
||
|
|
|
||
|
|
## Delete the API Directory Content
|
||
|
|
|
||
|
|
To flush the content, you will have to stop the Icinga Agent service and run the following Cmdlet within an Icinga Shell:
|
||
|
|
|
||
|
|
```powershell
|
||
|
|
Clear-IcingaAgentApiDirectory
|
||
|
|
```
|
||
|
|
|
||
|
|
## Delete API Directory with automated Icinga Agent handling
|
||
|
|
|
||
|
|
In case you want to automate the process, you can add the `-Force` argument which will stop the Icinga Agent service for you, flush the API directory content and start the Icinga Agent afterwards again:
|
||
|
|
|
||
|
|
```powershell
|
||
|
|
Clear-IcingaAgentApiDirectory -Force
|
||
|
|
```
|