Backing up and clearing out old iPad
I have an old iPad (model is iPad) running IOS 9.3.5. I backed it up to my iMac via USB, but was unable to back up Pages. I tried syncing with iCloud, but it is stuck saying "Uploading 24 items (zero KB of 5.9MB)". I only use iCloud for a few items like contacts, pages, messages, and notes. At this point, I'm fine with losing the Pages files on my old iPad, but don't want to risk losing anything on my connected devices like contacts and messages.
How do I proceed so I can:
1) disconnect from iCloud and other devices without losing anything on my other devices, and
2) finish clearing out my ipad to recycle or repurpose?
Thank you for any tips. Despite watching informative videos, I struggle to wrap my head around iCloud and am afraid to use it much for fear of losing files.
iPad, iOS 9