Most people delete an app when they stop using it, losing all the data that is deleted alongside the app. You don’t have to take such a drastic approach to save space. Apple has the option to remove an app without removing its associated data. This ability to offload apps is great for apps and games that you often don’t use. You can delete the app to save space without losing valuable information like your profile details or gamer scores.
To offload an app, you need to go to Settings > General and find the iPhone Storage entry. Scroll until you see the app section and select the app you want to offload. Select Offload app and then follow the steps to confirm you want to remove the app while preserving the personal data.