On OpenWrt 25.12.6 we removed one static IPv4 address. After a normal firewall reload LuCI showed one entry and nftables still held two. Compare both copies before deleting anything at runtime.
Compare the form with the live set
Back up and keep separate management access. Open Network → Firewall → IP Sets. In our isolated x86/64 VM the section was demo and the set clients. We removed .25 through UCI, kept .26, committed and reloaded the firewall normally. The screenshots show LuCI before and after.

In LuCI remove only the intended entry, save and apply. Run these read-only SSH checks with your section, table and set names. Find the section with uci show firewall. The last line looks for references and can be empty for an unused test set.
uci show firewall.demo
nft list set inet fw4 clients
nft list table inet fw4 | grep -F '@clients'

firewall.demo.entry='192.0.2.26'
elements = { 192.0.2.25, 192.0.2.26 }
Distinguish a stale entry from a new insertion
The two lines above come from saved configuration and live state respectively. If the saved value persists check the commit. If the address disappears and returns, run nft monitor briefly, stop with Ctrl+C and compare dnsmasq, input files and scheduled jobs. Fix the writer. Check for a covering subnet too.
Adapt the command only for an individual static IPv4 element already removed from configuration. Check source versus destination, negation and whether deletion grants or denies access. Never flush a shared set. fw4 reload-sets can rebuild several sets and discard dynamic entries.
nft delete element inet fw4 clients '{ 192.0.2.25 }' &&
nft list set inet fw4 clients
Test new connections and the control address
After targeted deletion only .26 remained, even after another ordinary reload. Test fresh connections for both addresses, following the rule direction. Check counters and expected access again after a list update. Existing sessions can retain state.
To undo, restore the entry in its configuration or generator and apply. Verify both elements and original permissions. Our test covered static membership only. Check dynamic writers and actual traffic locally.
Does LuCI use UTC or local time for scheduled OpenWrt firewall rules?
Comments