Can i invoke iOS to delete the different app's container data from my app after asking permission from user

Hi Developer,


Can i invoke iOS to delete the local data of a different app container from my app. Just like if we give 10 wrong attempts to touchid iOS erase all data from iOS device i just needed to erase data of particular app which user opts for.


Thanks

There's no API for doing something like this. Depending on the environment you're looking at something like Mobile Device Management might satisfy your needs. But if you're looking to do this generally for consumers, then no, you cannot ask iOS to delete a different app's data. Outside of an MDM environment, the user is in control of the apps on their device and one app can only access, control, or delete the data in its app sandbox (or shared group folders, which can be accessed by apps in the same developer team).


Perhaps if you can give some more details about what you're trying to accomplish there might be more options, but so far the things you're asking about are really aren't compatible with the security principles on iOS.

Thank you 🙂

Actually what i am trying to accomplish is that i want to list out the apps installed by user in iOS device within my app and upon selection of any app like facebook or messenger or anyother. My app will ask user to provide permission to give access of data for selected app and invoke iOS to delete its local data on iOS Device. I dont wanna read or write to the app data i just wanna wipe out all of its local data. Is it possible?

No, it is not possible. While you intend to wait for 'permission' from the user, there is no way for iOS to know whether or not the user has actually granted that permission to your app. Therefore, were it possible, one app could wantonly destroy the data of another app without actually waiting for 'permission.

It is hard to complete this task , the iPhone app ,data are stored on iphone memory , they are not so easy and completely deleted from iPhone , even if they disappear, taht is transient, so you may need professional iphone data eraser to wipe your iphone clean. For messagse erasing , learn this guide:

https://www.safewiper.com/tutorials/how-to-erase-iphone-messages.html


it also wipe your contacts,photos and other data.

Simple deletion won't completely wipe your iphone data clean ,it's stil be there and easily can be recovred.

As for me, i used safewiper to erase my photos and messages before selling. but it's not free.

https://www.safewiper.com/tutorials/erase-photos-from-iphone-before-selling.html


you can use the trail version, it support wiping 100 files for free.

Can i invoke iOS to delete the different app's container data from my app after asking permission from user
 
 
Q