# Delete Product

<!-- User story defining a specific requirement within a business flow.
The name of the story should start with the actor followed by `--` and the story name.
 -->

<!-- This section should contain the following subsections in order: -->
<!-- 1. ## User Story (required) -->
<!-- 2. ## Story Diagram (required) -->
<!-- 3. ## Scenario Patterns (required) -->
<!-- 4. ## Test Cases (required) -->
<!-- 5. ## Screens (required) -->
<!-- 6. ## Resolvers (required) -->

## User Story

<!-- Define the user story in the format:
As a [role], I want [goal], so that [benefit].
 -->

As a product manager, I want to permanently delete a DRAFT product, so that incorrectly created products can be removed from the system.

## Story Diagram

<!-- Mermaid flowchart showing user interactions with screens.
Focus on actors, UI screens, and business outcomes.
Avoid technical details (APIs, databases, endpoints).
 -->

<!-- Code block requirements: -->
<!-- Minimum 1 mermaid code blocks required -->

```mermaid
flowchart TD
    A([Product Manager]) --> B[Product Detail Screen]
    B --> C{Product Status?}
    C -- Not DRAFT --> D[Show Error: Only DRAFT Products Can Be Deleted]
    C -- DRAFT --> E[Confirm Deletion]
    E --> F[Product Permanently Deleted]
    F --> G[Product List Screen]
    D --> B
```

## Scenario Patterns

<!-- List requirements: -->
<!-- Minimum 1 unordered lists required -->
<!-- Minimum 1 items per list -->

- Product manager deletes a DRAFT product after confirming the action; the product is permanently removed.
- Product manager attempts to delete an ACTIVE product; an error is shown and the product is not deleted.
- Product manager attempts to delete an ARCHIVED product; an error is shown and the product is not deleted.

## Test Cases

<!-- List requirements: -->
<!-- Minimum 1 items per list -->

- Given a DRAFT product, when deletion is confirmed, then the product is permanently removed from the system.
- Given an ACTIVE product, when deletion is attempted, then an error is shown and the product remains.
- Given an ARCHIVED product, when deletion is attempted, then an error is shown and the product remains.

## Screens

<!-- Link to screen docs that implement this story's UI.
 -->

<!-- List requirements: -->
<!-- Minimum 1 unordered lists required -->
<!-- Minimum 1 items per list -->

- [product-detail](../../../screen/product-detail.md)

## Resolvers

<!-- Link to resolver docs that implement this story's backend operations.
Write "None" if this story does not require any resolvers.
 -->

<!-- List requirements: -->
<!-- Minimum 1 items per list -->

- [deleteProduct](../../../resolver/deleteProduct.md)
