Yes @zypper, this is the better place to answer your question than here.
"Are both commands the same? "More or less yes. Maybe I misspelled it for a beginner. But this is not ill-will. It’s just routine. It must be direction and completeness
List of devices attached
a5y17lte:/ $ pm uninstall -k --user 0
a5y17lte:/ $ pm uninstall -k --user 0 foundation.e.weather
“adb uninstall --user 0” requires that “adb shell” has already been executed. Without having executed “adb shell” at least once, the following commands “adb-commandos” will not work.
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
The command “adb shell” allows to enter the interactive shell.
The (system) apps are not completely removed from the system, but only for the current user via parameter –user 0.
See also → Android Debug Bridge (adb) is a command line tool that lets you communicate with an emulator or connected Android device.