Remove default packages' caches



  • I removed a package installed default via this command (with adb):

    pm uninstall -k --user 0 the_package
    

    Because of -k, the command does not remove the package's cache. How can I remove its cache after removing package's itself? I can't use the command again without the option because I have removed the package and now I do not have it.



  • You should be able to uninstall the data directories of an already uninstalled app by executing:

    pm clear 
    

    respectively on recent devices using cmd command

    cmd package clear 
    cmd package clear --user 0 
    

    This will delete all files (for the selected user) in /data/data/. Only the empty directory itself will remain and the app package name will not be removed from the list of uninstalled apps.

    If you don't remember the correct package name you can list all packages including those uninstalled by the command

    cmd package list package -u
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2