Is it possible to programmatically delete temporary files and cache of other applications?

I have many questions about clearing temporary files and cache programmatically, and the answer I received was No its not possible , since the applications are in sandbox mode, we cannot access the contents of one application from another, except for some scenarios. where we got read permission. But recently, I saw one application that deletes temporary files of other applications . He is alive and approved by the apple.

Below is a screenshot of the warning that it gives when a user asks for Delete tempo files .

So my question is that deleting Temp files and the cache of other applications is possible programmatically now, or is there any specific device location where we can clear temporary files or cache of all applications. I am confused between what I see (cleaning application) and what I read that its impossible (previous questions and blogs). Some valuable links and comments are appreciated.

+5
source share
1 answer

While this application probably uses a technique that delays disk space to force iOS to delete temporary files throughout the system and in other applications, if the reviewer noticed this, it would be rejected in the appstore. In addition, it is likely that it will be removed from sale at a later time. I had such things with applications that I developed that bend the rules. I would not recommend investing development time in applications that Apple is likely to reject or remove from sale.

+2
source

Source: https://habr.com/ru/post/1201821/


All Articles