Remove myself from someone else's iPad
Sorry for the dumb question but I've never handled an iPad before and:
Someone let me borrow an iPad to use procreate, and they signed me in and set me up on the iPad with my Apple ID, etc. I need to return it and I absolutely do not want them having access to any of my data, like photos, contacts, texts, etc. I followed the instructions I found online to go to Settings > [ your name], scroll down, tap Sign Out, enter your Apple ID password, then tap Turn Off. That seems to have signed me out, but all my photos are still there.
Just double checking that if I now go to Settings>General>Erase All Content and Settings that it will just take my info off the iPad itself. Seems like a silly question, but I'd rather be safe than sorry, as there are a lot of photos of my late father in my Cloud and I'm grieving so I'm not thinking straight and don't want to accidentally delete them from my iPhone.
Thanks.