How do I delete photos and videos to save space on my iPad but store them in iCloud?

I need to save space on my iPad but if I delete stuff there it seems they are gone forever!
Plug it into your computer and save all the pictures to your computer before you delete them.
Or use an alternate cloud storage option such as OneDrive or DropBox.

Original thread: https://forums.imore.com/threads/how-do-i-delete-photos-and-videos-to-save-space-on-my-ipad-but-store-them-in-icloud.313660/