If your old Apple ID is still showing up in your device’s settings, try deactivating Find My first. Go to Settings > Apple ID (at the top) > iCloud > scroll down to Find My and tap it. Toggle both Send the Last Location and Find My off. Enter in that old Apple ID’s password and it should turn off. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.