Non-rooted users can't uninstall system apps but are able to uninstall updates to them such that they are reverted to the base version of the app that shipped with the system image.
When a user does this operation, does it clear the data for the app?
Context: Newer versions of an app may write data incompatible with old versions of the app.
Uninstalling updates to a system app does clear the data, tested by uninstalling a system app with data and observing the storage consumed by the data portion of the app go to
For reference, it also outputs intents broadcasting
android.intent.action.PACKAGE_REMOVED just as if the entire app had been uninstalled as usual.