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.
Imran source share