How can I delete photos from the phone but still keep them in the cloud?

so how can I delete photos from the phone but still keep them in the cloud
You must disable the toggle next to “iCloud Photos” in the iCloud Settings on your iPhone. By the way, I assume you have an iPhone and your photos are in iCloud.
Welcome to iMore! In order to continue this conversation, you may want to consider registering for an account here on iMore. If you're interested, click here to learn how to sign up!
https://forums.imore.com/ask-question/293812-guide-how-sign-up-imore.html

Original thread: https://forums.imore.com/threads/how-can-i-delete-photos-from-the-phone-but-still-keep-them-in-the-cloud.440500/