Add confirmation prompt when deleting chat messages

Proposing addition of a confirmation prompt when deleting chat messages as requested in Issue #2540.