Can you delete pictures off of iPhone but still have them in iCloud?

I cannot for the life of me figure out how to do this. I know there simply MUST be a way to do it, otherwise, the iCloud is rather pointless, unless your phone breaks. I'm running out of space and would like to simply leave them backed up on iCloud, but delete them off the phone. Thank you!
This might be what you need:

How to free up storage space on your iPhone or iPad with iCloud Photo Library | iMore
You can also use cloud based apps like Box, Dropbox and OneDrive for storage of photos and videos. Works for me.

Original thread: https://forums.imore.com/threads/can-you-delete-pictures-off-of-iphone-but-still-have-them-in-icloud.335378/