remove event for trim message history