Un-sync my mac without deleting photos
I have macOS High Sierra. How do I "un-sync" my macbook pro from my icloud/apple ID? I don't want all my iphone photos connected to icloud to also be stored on my mac- it takes up too much space even when the photos/videos are optimized. Thanks!
MacBook Pro 15″, macOS 10.13