Following message from sokolov at phix dot de :
If you want to delete an individual message, the msg_number parameter should be a true int. If it is a string like "1 " (space one) or " 1 " (space one space), the message will not be deleted. Use something like intval(trim($msg_number)).