This is for non-rooted stock ROM's.
To get rid of one single app, I've been executing the following commands:
Steps (1) and (2) first — otherwise, if I just execute (3) before them, the app will (more often than not) launch itself again and start accumulating app data.
At this point, I've achieved to make an app useless. It is not running (force stopped), it has no data saved (cleared) and will not launch itself without me knowing (disabled).
If I wish to take it further and entirely get rid of it, I can execute (4) to uninstall it.
Step (5), might seem redundant, but I tested myself several times on two different categories of apps. The first one is system apps (i.e., the Settings UI has the option to disable it greyed out) and the other is typical carrier bloatware (you can uninstall it from the UI yourself without ADB)
If you run steps (1)‐(5) on a system app, you will get "success" on all five. If you run all five on the carrier app, you will get "success" only in steps (1)-(4). In step (5), you will get "app is not found" (or some similar message) instead.
So I said, maybe an "uninstalled" system app is still accumulating app data, if I can run
clear as many times as I wish after it's uninstalled and still get "success". Is that the case?
As far as just disabling is concerned, I have verified steps (1)-(3) are necessary. But when it comes to uninstalling instead, are they redundant?
(i.e., does a simple
uninstall also automatically execute