There are two ways you can offload Apps
- This is to be done manually for each app. Settings > General > iPhone Storage > (Tap on any App ) > Offload App
- This is will offload apps automatically after 12 days of inactivity of an App. Settings > App Store > Offload Unused Apps [Enable]
Apple introduced the capability for app offloading on iPhones with the release of iOS 11 in September 2017. This feature, known as "Offload Unused Apps," allows users to free up storage space on their devices by automatically removing infrequently used apps while keeping their documents and data intact. When an offloaded app is selected again from the home screen, it is reinstalled from the App Store without losing any saved data.
You will have to use the Same Apple ID to download the apps.