Nice. Apart from fixing the problem, you are also deleting it from other tables :)