What model is your mobile phone? Can't the SMS be deleted directly?Have you tried factory settings?
If this way doesn't work. There is data eraser tool that may help you.