Feature Request: Add option to clean out configuration for plugins not installed

Started by mrzaz, July 15, 2026, 12:27:12 PM

Previous topic - Next topic
Hello,

Feature request
- Add option to clean out configuration data in config.xml for plugins not longer installed.

It is a bit annoying to have data for plugins, that has since long been removed, in the config.xml.
I would like an option to completely or selected plugin data on config to be removed.
This include the normal place but also things in other sections like widget config.

I removed apcupsd but it still remained

- <plugins>...os-apcupsd
- <widgets>
    <sequence>...apcupsd-container:00000010-col5:show
- <apcupsd version="0.0.2" persisted_at="1783448822.19" description="APC UPS configuration">
.
.

Also uninstalled NUT
- <Nut version="1.0.4" persisted_at="1782338757.75" description="Network UPS Tools">

If I really want a clean slate where everything is removed.

This also goes into logfiles.
root@OPNsense:/var/log/apcupsd # ls
apcupsd_20260707.log    apcupsd_20260711.log    apcupsd_20260712.log    apcupsd_20260714.log    latest.log

//Dan Lundqvist
Stockholm, Sweden
Best regards
Dan Lundqvist (mrzaz)

"It's better to burn up, than fade away..." (Highlander)

>- Add option to clean out configuration data in config.xml for plugins not longer installed.

How about System: Configuration: Defaults: Components: all the entries that are annotated with "(not installed)".  :)


Cheers,
Franco

Quote from: franco on July 15, 2026, 01:53:42 PM>- Add option to clean out configuration data in config.xml for plugins not longer installed.

How about System: Configuration: Defaults: Components: all the entries that are annotated with "(not installed)".  :)


Cheers,
Franco

Nice. I didn't know about this one.  :-)
I have been running OpnSense now for quite many years but you never learns it all.
New things to discover.   hehehe

I will check but I think that one will most likely do what I want.

//Danne
Best regards
Dan Lundqvist (mrzaz)

"It's better to burn up, than fade away..." (Highlander)

To be fair it was added in 26.1 so not too long ago :)


Cheers,
Franco