# yourpovv/webhook-deleter architecture

> Architecture diagram of the GitHub repository yourpovv/webhook-deleter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yourpovv/webhook-deleter
- Repository: https://github.com/yourpovv/webhook-deleter

## Overview

Webhook Deleter is a small terminal app for deleting Discord webhooks individually or in bulk. The user selects an action; the menu dispatches to the single- or bulk-delete flow, which validates each URL before requesting deletion. Bulk mode reads URLs from webhooks.txt. Validation and deletion are implemented in the same source file as the menu, so the graph separates their responsibilities without implying separate modules.

Main entry points: [`base.py`](https://github.com/yourpovv/webhook-deleter/blob/main/base.py) (Bulk delete), [`webhooks.txt`](https://github.com/yourpovv/webhook-deleter/blob/main/webhooks.txt) (Bulk URL list)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_menu["Terminal menu<br/>[base.py]"]
node_single["Single delete<br/>[base.py]"]
node_bulk["Bulk delete<br/>[base.py]"]
node_validation["URL validation<br/>[base.py]"]
node_deletion["Webhook deletion<br/>[base.py]"]
node_targets["Bulk URL list<br/>[webhooks.txt]"]
node_discord{{"Discord API"}}

node_user -->|"chooses action"| node_menu
node_menu -->|"dispatches to"| node_single
node_menu -->|"dispatches to"| node_bulk
node_single -->|"validates URL"| node_validation
node_single -->|"requests deletion"| node_deletion
node_bulk -->|"reads URLs"| node_targets
node_bulk -->|"validates each"| node_validation
node_bulk -->|"deletes valid URLs"| node_deletion
node_validation -->|"checks webhook"| node_discord
node_deletion -->|"sends delete"| node_discord

click node_menu "https://github.com/yourpovv/webhook-deleter/blob/main/base.py"
click node_single "https://github.com/yourpovv/webhook-deleter/blob/main/base.py"
click node_bulk "https://github.com/yourpovv/webhook-deleter/blob/main/base.py"
click node_validation "https://github.com/yourpovv/webhook-deleter/blob/main/base.py"
click node_deletion "https://github.com/yourpovv/webhook-deleter/blob/main/base.py"
click node_targets "https://github.com/yourpovv/webhook-deleter/blob/main/webhooks.txt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_menu,node_single,node_bulk,node_validation,node_targets toneTeal
class node_deletion,node_discord toneMint
```

## Components

### Other components

- **User**
- [Terminal menu](https://github.com/yourpovv/webhook-deleter/blob/main/base.py): `base.py`
- [Single delete](https://github.com/yourpovv/webhook-deleter/blob/main/base.py): `base.py`
- [Bulk delete](https://github.com/yourpovv/webhook-deleter/blob/main/base.py): `base.py`
- [URL validation](https://github.com/yourpovv/webhook-deleter/blob/main/base.py): `base.py`
- [Webhook deletion](https://github.com/yourpovv/webhook-deleter/blob/main/base.py): `base.py`
- [Bulk URL list](https://github.com/yourpovv/webhook-deleter/blob/main/webhooks.txt): `webhooks.txt`
- **Discord API**

## Connections

- User → Terminal menu: chooses action (evidence: `base.py`)
- Terminal menu → Single delete: dispatches to (evidence: `base.py`)
- Terminal menu → Bulk delete: dispatches to (evidence: `base.py`)
- Single delete → URL validation: validates URL (evidence: `base.py`)
- Single delete → Webhook deletion: requests deletion (evidence: `base.py`)
- Bulk delete → Bulk URL list: reads URLs (evidence: `base.py`)
- Bulk delete → URL validation: validates each (evidence: `base.py`)
- Bulk delete → Webhook deletion: deletes valid URLs (evidence: `base.py`)
- URL validation → Discord API: checks webhook (evidence: `base.py`)
- Webhook deletion → Discord API: sends delete (evidence: `base.py`)
