Device is linked with another apple id
After buying an old iphone, how to make sure that device is not linked or associated with any other apple ID?
It happened that after using a used iphone for 2 years, appeared that device is linked with another Apple ID(when subscribing to music)