You can either factory reset the device (which is what I would recommend if you are setting up a new user on the device) or just delete the account from the Apple ID settings on the device. There should be something under the App Store settings as well as the iCloud account settings that you will need to delete.