Delete messages after processing them