Returning my borrowed iPad to work: how to clear of all personal apps/data
It depends on the MDM (Mobile Device Management) but you can wipe the iPad by following these steps:


Go to Setting 
Go to General and (for iPads on the right) swipe down, tap on Reset.
Then tap on Reset all content and settings.


Your Apple ID will save all app's and when you log in your new iPad it will migrate some stuff. Again, depending on MDM your iCloud might have been turned off.