Delete messages correctly.