Werk #18120: Offer folder cleanup option for distributed monitoring deletion

Component Setup
Title Offer folder cleanup option for distributed monitoring deletion
Date Jun 5, 2025
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When removing a site from distributed monitoring, an error could arise saying that hosts and folders still exist associated with a given site. The error message offered a link to the host search which makes it easy to handle dangling hosts, but there was no help for deleting folders. In order to clean up these dangling folders, one would need to manually do this via the command line.

With this change, we are now offering links to all related folders along with a link to automatically delete these folders if they are empty. The flow is constructed in such a way that the user will only see this action if all hosts related to a site have been cleaned up and all nested hosts and folders unrelated to the site are cleaned up. That way all folders should be empty when you are presented with this option.

Otherwise, the user must manually clean up the hosts and sub-folders nested inside a site folder before proceeding. Use the folder links provided by the error output to streamline this process.

To the list of all Werks