When the device realizes there isn't enough room, it will reject the download and
automatically clear cached data in the apps and free up space.
It also has a nifty feature that
automatically clears the cache, and Google built filters to target specific WhatsApp image forwards, which tend to clutter up a device over time.
Not exact matches
If Windows Store is not working in Windows 10, then run this troubleshooter & fixer from Microsoft to reset Windows 10 Store &
clear cache automatically.