There's apparently no way to save photos to the cloud and delete them from your device. Unbelievable.
Actually, there is.
You can use iCloud Photo Library with the "Optimize Mac Storage" option.
if you enable it, Photos will keep the full size original photos in iCloud and only store smaller thumbnails for browsing locally. You can reduce the size of your Photos Library down to 10% of the original size this way.
iCloud Photo Library FAQ - Apple Support https://support.apple.com/en-us/HT204264
Can I use iCloud Photo Library to save space on my device?
iCloud Photo Library automatically keeps all your photos and videos in the original, high-resolution version. Follow these steps to choose how you store your photos and videos on your device:
- On your iPhone, iPad, or iPod touch, tap Settings > iCloud > Photos or Settings > Photos & Camera, then select a storage setting.
- On your Mac, click Photos > Preferences > iCloud, then select a storage setting.
If you turn on Optimize [device] Storage, iCloud Photo Library will automatically manage the size of your library on your device, so you can make the most of your device's storage and access more photos than ever. All of your original, full-resolution photos and videos are stored in iCloud while device-size versions are kept on your device. You can download the original photos and videos over Wi-Fi or cellular when you need them.
If you turn on Download Originals, iCloud Photo Library will keep your original, full-resolution photos and videos in iCloud and on your device. Download Originals is the default setting for iOS devices with the free 5 GB storage plan and for all Mac devices.
You need an Internet connection to access an original photo or video that’s stored only in iCloud.
But keeping the originals in iCloud without local copies has severe drawbacks. To be able to work with your photos you will need a fast internet connection, and even then it will be somewhat slow, if you want to make a slideshow or similar. Editing photos is no fun this way.
You will have more joy, if you simply move the library to an external drive, if your primary concern is freeing storing on your system drive.