Skip to content

Add “Clear All Expenses” Button #54

@rahana-19

Description

@rahana-19

Currently, users can only delete individual expenses one by one. There is no option to clear all the expenses at once.
This can be time-consuming if a user wants to reset the app or start fresh.

Problem Statement
Currently, users can delete expenses only one by one.
There is no option to remove all expenses at once.
If a user wants to reset the tracker, it becomes time-consuming.

What to Implement
Add a “Clear All” button that:
Appears above or below the list of expenses
When clicked, shows a confirmation modal (e.g., “Are you sure you want to delete all expenses?”)
Deletes all expense items and resets the total to zero
Works without page reload

Why This Helps
Saves time for users
Improves user experience
Makes the app behave more like a real expense tracker

Proposed Solution
Add a “Clear All” button in the UI.
Place it near the expense list or total amount section.
When clicked:
Show a confirmation message/modal.
Example: “Are you sure you want to delete all expenses?”

If confirmed:
Delete all expense entries.
Reset total amount to ₹0.
Update UI instantly (without refreshing page).

Expected Outcome
Users can reset expenses quickly.
Better user experience.
App becomes more practical and user-friendly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions