How to deactivate a sold phone

Hi,

i installed avast last year on a glaxy mini. I sold my phone now. Did not know that i get a sms several times per day when a new sim card ist plugged in. I did a hard reset on the old phone before it was sold. I know its not stolen, i sold it. How can i now disable the sms from my old phone. I can log in on the phone where i receve the sms to the settings but cant find an option to deactivate anything. pls help, thx.

Send a SMS with this content: 2222 SET PROTECTION 0 (Replace 2222 with your own AT password)