Uninstall default apps

What is the difference in adb commands between the following?

adb shell pm uninstall --user 0
vs
adb uninstall --user 0

Are both commands the same? does adb shell pm uninstall actually remove the apk from the phone or just the user profile?

thanks in advance.