I want to clear all app caches mainly to reduce the size of and speed up backups. This feature has been supported in Android 4, but appears to have been removed a long time ago.
A root-only method is fine.
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this communityI want to clear all app caches mainly to reduce the size of and speed up backups. This feature has been supported in Android 4, but appears to have been removed a long time ago.
A root-only method is fine.
for cache in /data/user*/*/*/cache/*; do rm -rf "$cache"; done
. For other possible locations see android.stackexchange.com/a/218507/218526