Script to run after deletion of a virtualmin server

Hi,

I use Actions upon server and user creation in virtualmin, but i would also like to run a custom script when i delete a server. Where can i find this option?

Have you checked the docs on the API

Hi Stefan,

This doesn’t provide me a option to run a custom script after i delete a virtualmin server?

The CLI/API is not relevant to what you’re trying to do.

That is literally it. You found it.

The Command to run before/after making changes to a server runs after any change, including deletion. Check the online help for details. You just need to detect the action in your script(s).

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.