3

I'm trying to erase all app-caches via the official adb-shell from the SDK-Toolkit without having to root my phone. Does the command

fastboot erase cache

only deletes app-caches or does it remove app data and general data on the mobile harddrive too?

Alex P.
  • 30,437
  • 17
  • 118
  • 169
Doesbaddel
  • 214
  • 3
  • 17

1 Answers1

3

Check the info on fastboot tag-wiki.

Fastboot erase cache should just erase the cache partition (check the output from that command).

To delete the app data there is another command:

fastboot erase data

But be careful with the commands you use. You could end up with unwanted results. Cheers.

André Sousa
  • 1,692
  • 1
  • 12
  • 23
  • Thank you for the link. Erasing the whole cache partition is not the same as deleting only the app-cache, right? Assume, that I only want to delete app-caches but not erasing the whole partition. How would I do that? – Doesbaddel Oct 26 '18 at 16:23
  • 1
    In this case it is the same. It will wipe out all the apps caches. This link can also help you: https://techbeasts.com/useful-adb-and-fastboot-commands-and-how-to-them/ – André Sousa Oct 26 '18 at 22:00
  • @Doesbaddel If that fixed your issue, please mark this answer has it correct one so it can helper others :) – André Sousa Nov 07 '18 at 18:36