I apology, I left a typo into my latest posted macaddr.cmd (zip) file resulting into corrupted cfg file when using flush
macaddr corrected using my latest modification which includes a retention delay for any removed host. Once the delay is passed, the WPS object of the removed host is deleted but the cfg file already has its entry to allow adding it again as it was (if same ip) when inserted again.
cfg file has a date value out of date(B) value on first position
Note: to check how it works, run one time the refresh with your existing cfg file. This one will be updated with current date each time you run the refresh
reduce the day valu by more than 7 days on offline (removed) host and run refresh again to see how it works. Then, you can set date value again to the latest value and run refresh again.
( by default, I set the retention delay to 7 days and you can change it to any value [ see the corresponding entry into macaddr.cmd ] )