deleting message set if it is empty