from pm help, I get this:
pm uninstall: removes a package from the system. Options:
-k: keep the data and cache directories around after package removal.
pm clear: deletes all data associated with a package.
Does this mean that when I do pm uninstall
(without -k
) it deletes all files which would pm clear
delete? Or in other words, when I do specify -k
for uninstallation command, it leaves files undeleted. When I do pm clear
on that package, the files which will be cleared are exactly these I have left undeleted by -k
option?
Is it possible that by doing pm uninstall
and after that pm clear
, I can even delete some files which have not been deleted by pm uninstall
?
You can't delete some system apps that came pre-installed on your Android phone. But on some phones, you can turn them off so that they won't show on the list of apps on your phone. To learn how to disable apps, contact your device manufacturer.
Both Android and iOS have a recent apps list. Pull up the list and you will find a seemingly endless register of apps that you have opened at some point. Despite what you may think, removing apps from the list won't speed up your smartphone.
Your understanding is correct:
pm uninstall
removes everythingpm uninstall -k
removes the app,
leaves the user data intact (to be used if the app is reinstalled)pm clear
only removes the user data associated with the package,
but not the package itselfIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With