Hi oday277,
We would love to help out. Just to clarify, is the device signed into with a different Apple ID than the one you're currently using? If so, you will need to sign into that account to access the data stored on the device. There would be no way to remove the Apple ID without being able to sign into it.
"Remove Activation Lock on the device
Follow the onscreen steps to enter the Apple ID and password you used to set up your device or your device passcode. If you don't remember your Apple ID, try to sign in with an email address or phone number that you regularly use for Apple services.
Learn how to find your Apple ID or reset your Apple ID password.
Remove Activation Lock on the web if a device is offline
- Go to www.iCloud.com/find.
- Sign in with your Apple ID, email address or phone number, and enter your password.
- Select the device that you want to remove from iCloud.
- Click Remove from Account."
Reference: How to remove Activation Lock - Apple Support
Cheers!