There are three ways of to fix "how to get rid of someone else's Apple ID on my iPhone", when you have a transferred device and you can contact the previous owner.
To fully reset your iPad, if you forgot your password, you would be able to use a different variety of resources such as WooTechy, iCloud, and iTunes.