I can uninstall an app on the device from my computer using
adb uninstall <package_name>
Trying using the
pm uninstall <package_name>
pm uninstall -k <package_name>
-k flag keeps the data and cache directories after the package is removed.
I haven't tested this myself, but I don't think this should show a warning message.