Delete Chat

Delete Chat

Overview

Flow ID: delete-chat
Category: Chat Interactions
Estimated Duration: < 5 seconds
User Role: All Users
Complexity: Simple

Purpose: Permanently remove a chat session from the history. This is useful for privacy, decluttering, or removing failed experiments.


Trigger

What initiates this flow:

  • User manually initiates

Specific trigger: Clicking the Trash Icon (Delete) next to a chat in the sidebar or from the chat header menu.


Prerequisites

Before starting, users must have:

  • At least one existing chat

User Intent Analysis

Primary Intent

Clean up workspace or remove sensitive/irrelevant conversation history.


Step-by-Step Flow

Main Path (Happy Path)

Step 1: Locate Chat

  • User Action: Hover over the chat title in sidebar or open the specific chat.

Step 2: Trigger Delete

  • User Action: Click Trash Icon.

Step 3: Confirm (Safety)

  • System Response: “Are you sure you want to delete this chat? This action cannot be undone.”
  • User Action: Click Confirm.

Step 4: Cleanup

  • System Response:
    • Chat removed from sidebar.
    • If chat was open, main window resets to “New Chat” state.

Error States & Recovery

Error 1: Accidental Deletion

Cause: User clicked too fast
User Experience: Chat is gone.
Recovery: None. (Design consideration: Add “Undo” toast for 5 seconds).


Pain Points & Friction

  1. No Undo: Deletion is immediate and destructive.
    • Mitigation: Confirmation modal is essential.

Design Considerations

  • Bulk Delete: Allow selecting multiple chats to delete (e.g., “Delete all from yesterday”).

  • Pin Chat - Alternative to cleanup (organizing important ones)

Technical References

  • src/actions/chat-actions.js (deleteChat)
  • src/localdb/chats.js

Related Articles

View All Chat Interactions Articles

Still need help?

Get personalized support with our team for tailored guidance and quick resolution.