OPNsense Forum

English Forums => General Discussion => Topic started by: mrzaz on July 15, 2026, 12:27:12 PM

Title: CLOSED: Feature Request: Add option to clean out configuration for plugins not
Post by: mrzaz on July 15, 2026, 12:27:12 PM
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
Title: Re: Feature Request: Add option to clean out configuration for plugins not installed
Post by: 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
Title: CLOSED: Re: Feature Request: Add option to clean out configuration for plugins...
Post by: mrzaz on July 15, 2026, 05:39:32 PM
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
Title: Re: Feature Request: Add option to clean out configuration for plugins not installed
Post by: franco on July 15, 2026, 07:10:50 PM
To be fair it was added in 26.1 so not too long ago :)


Cheers,
Franco
Title: Re: Feature Request: Add option to clean out configuration for plugins not installed
Post by: dinguz on July 16, 2026, 06:26:16 AM
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.
Title: Re: Feature Request: Add option to clean out configuration for plugins not installed
Post by: franco on July 16, 2026, 11:55:16 AM
Can you please add an issue on GitHub for it?


Cheers,
Franco
Title: Re: Feature Request: Add option to clean out configuration for plugins not installed
Post by: dinguz on July 16, 2026, 07:22:37 PM
Done, it's here: https://github.com/opnsense/core/issues/10547
Title: Re: Feature Request: Add option to clean out configuration for plugins not installed
Post by: franco on July 16, 2026, 07:58:44 PM
# opnsense-patch https://github.com/opnsense/core/commit/8690ebe5


Thanks,
Franco