I've noticed in your plugin.pp file, 'absent' case, you are simply removing the plugin directory. Is this everything that needs to be done when uninstalling plugin? I know that kibana command has --remove option that should be used for uninstalling plugins. I don't know if the result is the same in both cases, but I believe that officially recommended way should be used. For this reason I suggest changing 'absent' case as follows:
I've noticed in your plugin.pp file,
'absent'
case, you are simply removing the plugin directory. Is this everything that needs to be done when uninstalling plugin? I know that kibana command has --remove option that should be used for uninstalling plugins. I don't know if the result is the same in both cases, but I believe that officially recommended way should be used. For this reason I suggest changing'absent'
case as follows: