Few notes here since this whole 16MB flash comes up in my world...
- The only thing that truly cleans things is doing netinstall. And, if want to run wifi-qcom-ac, IMO, you should go through the trouble of netinstall.
- The amount of free space even if clean can still vary because not everyone is going to have the same # of bad blocks. I've seen swings of 100+KBs between 16MBs units, so possible one unit runs same config+packages and another cannot. For example, the routeros+wifi-qcom-ac+zerotier package combo puts the device <1MB from being full. So it's down to how many many bad sectors there are on whether that will combo will work (and even nothing is bad, it's still close). So if you want zerotier+wifi-qcom-ac on hAPac2... you absolutely need to do a netinstall.
- I do get netinstall is PITA. Until wifi-qcom-ac, netinstall was very infrequent thing for me. I'll offer the Linux netinstall or a RouterOS
container (on another router) is often easier than Windows, but still an elongated process - hopeful once to purge V6-config/past-upgrades/graphs/etc. But since netinstall re-formats the disk - it is the ONLY way to be sure all files are removed.
- RouterOS goes to memory, so even if you have no disk space, it can still generally run. Failed upgrade (& often because of being close on disk space) is how you end up in generally bootloop, and again only fix is netinstall if that happens. But in most recent V7, it is not as common as when this thread started. If you do run out of disk space after upgrade, most likely problem is save the config is lost. In fact, I have a 16MB wAPacR that's sitting on my disk awaiting a netinstall because it has 0 disk space – device works fine — but since I cannot save anything, I cannot command a downgrade (since that requires a config write) thus the familar refrain: netinstall.
- Most people want downgrading, in general, to work - so they leave the needed bit... But RouterOS does not know when/what you might want to downgrade. Since we're talking about KBs, that make sense - except on 16MB flash things... But again a netinstall will clean up all of the actual+theoritical files that could exist and start fresh - so that the recommend way of removing the option+files needed for downgrade.
- Since you generally only run into disk space issues if you want to run wifi-qcom-ac – while that's better – it's just a strain with the 16MB flash. So even if everything clean/netinstall'ed, there still not a lot of breathing room. While still quite a good device... the hAPac2 are getting older... so another option is to get some newer AX wifi AP & remove ANY wifi package from hAPac2 so it end it's life as just a router. Or, since it has USB, it be make a fine Dude server for some new hAPax3/2. Or, even container fit, if there is no Wi-Fi, so it run HomeAssistant/Pi-Hole or any of RPi-kinda things on hAPac2 containers. Just something to consider here. These 16MB units are still pretty close to be maxed on disk with the recent V7s & that ain't going to get better over time...