feat: Add "Delete All Prompts" functionality with robust confirmation #5064

Closed
opened 2025-11-11 16:11:14 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @geiras on GitHub (May 6, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Yes. Currently, if a user needs to delete multiple prompts (e.g., after a bulk import that wasn't configured correctly, or simply to clear out old/experimental prompts), they must delete each prompt individually. This process is extremely time-consuming and tedious, especially when dealing with a large number of prompts (e.g., 10, 30, or more).

I recently experienced this firsthand: I imported a batch of prompts from another tool via JSON. After importing, I realized the JSON generation missed some parameters (like variable usage). To correct this, I had to re-import, but first, I needed to remove the incorrectly imported prompts. Deleting them one by one was painstakingly slow and frustrating.

Desired Solution you'd like

I propose adding a "Delete All Prompts" feature to Open WebUI. This feature would allow users to remove all their saved prompts in a single action.

Crucially, this action must be protected by a very robust, multi-step confirmation process to prevent accidental data loss. For example:

  1. Clear Button/Action: A clearly labeled button or menu option like "Manage Prompts" > "Delete All Prompts."
  2. Initial Warning Modal: Clicking this button would trigger a modal window clearly stating:
    • "You are about to delete ALL saved prompts."
    • "This action is irreversible."
    • "Consider exporting your prompts first if you want a backup." (Perhaps even a direct "Export Prompts & Continue" button here).
  3. Secondary Confirmation Step: To proceed, the user might need to:
    • Type a specific confirmation phrase (e.g., "DELETE ALL MY PROMPTS") into a text field.
    • Click a final "Yes, I understand the consequences, delete all prompts" button that is initially disabled until the phrase is typed correctly.

Alternatives Considered

The current alternative is deleting prompts one by one, which is not a viable solution for managing prompts at scale or correcting bulk import errors efficiently.

Additional Context

  • User Experience Impact: This feature would significantly improve the user experience for managing prompts, especially for users who experiment frequently or manage larger libraries.
  • Error Recovery: It provides a much-needed quick reset option when things go wrong with imports or batch creations.
  • Safety First: The emphasis on strong confirmation is paramount. The goal is to make a tedious task easy, not to make catastrophic data loss easy. An option to "Export prompts before deleting" directly in the confirmation flow could be an excellent addition to this safety net, ensuring the user has a backup readily available in their downloads folder.

This feature request is related to the Open WebUI interface and prompt management within it, not Ollama itself.

Originally created by @geiras on GitHub (May 6, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Yes. Currently, if a user needs to delete multiple prompts (e.g., after a bulk import that wasn't configured correctly, or simply to clear out old/experimental prompts), they must delete each prompt individually. This process is extremely time-consuming and tedious, especially when dealing with a large number of prompts (e.g., 10, 30, or more). I recently experienced this firsthand: I imported a batch of prompts from another tool via JSON. After importing, I realized the JSON generation missed some parameters (like variable usage). To correct this, I had to re-import, but first, I needed to remove the incorrectly imported prompts. Deleting them one by one was painstakingly slow and frustrating. ### Desired Solution you'd like I propose adding a "Delete All Prompts" feature to Open WebUI. This feature would allow users to remove all their saved prompts in a single action. Crucially, this action must be protected by a **very robust, multi-step confirmation process** to prevent accidental data loss. For example: 1. **Clear Button/Action:** A clearly labeled button or menu option like "Manage Prompts" > "Delete All Prompts." 2. **Initial Warning Modal:** Clicking this button would trigger a modal window clearly stating: * "You are about to delete ALL saved prompts." * "This action is irreversible." * "Consider exporting your prompts first if you want a backup." (Perhaps even a direct "Export Prompts & Continue" button here). 3. **Secondary Confirmation Step:** To proceed, the user might need to: * Type a specific confirmation phrase (e.g., "DELETE ALL MY PROMPTS") into a text field. * Click a final "Yes, I understand the consequences, delete all prompts" button that is initially disabled until the phrase is typed correctly. ### Alternatives Considered The current alternative is deleting prompts one by one, which is not a viable solution for managing prompts at scale or correcting bulk import errors efficiently. ### Additional Context * **User Experience Impact:** This feature would significantly improve the user experience for managing prompts, especially for users who experiment frequently or manage larger libraries. * **Error Recovery:** It provides a much-needed quick reset option when things go wrong with imports or batch creations. * **Safety First:** The emphasis on strong confirmation is paramount. The goal is to make a tedious task easy, not to make catastrophic data loss easy. An option to "Export prompts before deleting" directly in the confirmation flow could be an excellent addition to this safety net, ensuring the user has a backup readily available in their downloads folder. This feature request is related to the **Open WebUI interface** and prompt management within it, not Ollama itself.
Author
Owner

@Classic298 commented on GitHub (May 6, 2025):

Inverted of delete all, a method to select multiple prompts quickly and then delete them im bulk is perhaps safer than a single button

@Classic298 commented on GitHub (May 6, 2025): Inverted of delete all, a method to select multiple prompts quickly and then delete them im bulk is perhaps safer than a single button
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5064