If you are on the mortgage loan, the only you way you can be removed from that is by your boyfrined refinancing the property. Of course when the lender gave you the mortgage, it was based on the information that they gathered from the BOTH of you.
Obviously the bank will have to consider if he will qualify for the payment on his own. If he doesn't you will be stuck.
Thank you and let me know if you need any more information,