I want to automatically uninstall apps that are preinstalled on iPad
You can prevent preinstalled apps from being displayed on the device (so that device users cannot use them).
To hide apps, use Restrict app usage (supervised only) in the profile Restrictions payload.
For details, see here.
Last updated: March 16, 2022