Apple Photos and iCloud
Storing the photos in iCloud only and not on local disk is possible, but it’s not the default. In the Photos app go to Preferences, select the iCloud tab and make sure that “Optimize Mac Storage” is selected.