Can you provide a bit more information on what you try to accomplish here? I’m thinking that if I don’t want to have a certain app on my phone I don’t install it.
Why would the user be able to download an app and then lock themselves out of using it?
Would iOS restriction settings be of any help for you ?