How do I clear cache for all apps on iphone?

Open the Settings app, then select General, then iPhone Storage. Wait for the page to load so that you can see a list of all your apps. Once the list has been generated, select the app to be deleted and tap Offload App.