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

Nice feature, thanks. I did however run into a GUI issue with it: the drop-down itself scrolls fine, but the row above it that displays the selected entries as tags keeps expanding horizontally as you add more selections, until it overflows the viewport. Once that happens, the reset button is pushed off-screen and becomes unreachable.
Expected behavior: the selected-entries row should wrap onto multiple lines once it reaches the container width, so the reset button stays visible regardless of how many entries are selected.
Note: This post may have been lightly edited by AI for spelling and minor readability improvements. The content and findings are entirely my own.


Note: This post may have been lightly edited by AI for spelling and minor readability improvements. The content and findings are entirely my own.