How can I delete and un-sync my iCloud photos from my iPhone?

I'm not sure how I did it but somehow I synced my icloud photo albums to my iphone and it will not let me take them off or delete them from my phone, please help.
Re: How do I unsync cloud photos to get them off my iphone?

iCloud - Photos - Apple Support

Original thread: https://forums.imore.com/threads/how-can-i-delete-and-un-sync-my-icloud-photos-from-my-iphone.314170/