IOS Subscription

I had a subscription in my phone under an AppleID which I deleted recently and changed to another one, the subscription never ended like I thought it would and now I cant start a subscription with the new AppleID. How can I fix this and end the current subscription?