Returning 575 Terabytes of Storage Space to Our Users
Feb 25, 2020Lucas Nelaupe

Summary
This post details the implementation of a cleanup mechanism to remove old, unused cache folders from the Grab app on user devices. This was identified as a significant contributor to app storage footprint. The mechanism automatically removes these old cache folders upon app update, resulting in the reclamation of up to 1GB of data per user and a total of 575 terabytes across over 13 million devices. The post also highlights the use of Android vitals and StorageManager API for instrumentation and data analysis to identify the root cause (discontinued third-party libraries leaving behind cache data) and measure the impact of the cleanup.