I need to restrict the deletion of an iOS application for MDM (Mobile Device Management) purposes. Is there any way I can achieve this programmatically or otherwise?
This is not possible.
You cannot restrict the deletion of an iOS application.
However, if a particular user wishes to restrict deleting of third-party applications, it is possible to do so by navigating to General > Restrictions and turning on the Deleting Apps switch.