Actually it does perform some clean up, when I tried to upgrade from 7.16->7.17 it failed but some space was released and on 2nd attempt was successful without any manual cleanup or config change. Some small space was released just enough for new ver. to fit, but free space was too small and I reverted to 7.16.
I think issue is with config storage DBs, these database files needs to be shrinked after some time, like SQLite VACUUM command. This is suspect because backup file doesn’t backup whole system, just config/certs and when I reverted to 7.16 with netinstall with improt of same config and certs I made new backup, backup file was about 40Kb smaller from backup made before upgrade to 7.17 (same config for same ROS ver).