Selectively remove pictures from iphone without deleting from icloud
I want to delete photos from my iphone to free up some space, but in doing this it will also delete from my icloud. Is there a way around this?
Also if I sign out of icloud on my iphone and delete the pictures I don't want, when I sign back in to icloud what takes precedence ( will icloud sync of the phone and delete pictures or will iphone sync with icloud and add the pictures back to the phone).
iPhone XR, iOS 13