Message delete function refactored.