How to write code to uninstall multiple apps in iOS using Swift?

Does apple allow any way to programmatically remove apps on iOS? I need to uninstall some apps in order for the next iOS update to install, as I don't have enough room in storage for the update.

There is no API to uninstall apps (apart from MDM; you're unlikely to be using it). You need to do so manually.

How to write code to uninstall multiple apps in iOS using Swift?
 
 
Q