# g-h-0-s-t/deletealltweets architecture

> Architecture diagram of the GitHub repository g-h-0-s-t/deletealltweets, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/g-h-0-s-t/deletealltweets
- Repository: https://github.com/g-h-0-s-t/deletealltweets

## Overview

deleteAllTweets is a browser-console snippet for removing tweets and replies from the currently selected Twitter tab. The user logs in, opens the desired Tweets, Tweets & replies, or Media view, then runs the code (or a bookmark). The snippet repeatedly scrolls the page, opens visible “More” menus, and clicks elements labeled “Delete.” The source does not show confirmation handling or server-side deletion logic; deletion depends on Twitter’s page behavior, and the README notes that some posts may require rerunning later.

Main entry points: [`deleteMyTweets.js`](https://github.com/g-h-0-s-t/deletealltweets/blob/main/deleteMyTweets.js) (Delete snippet)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Logged-in user"))
node_snippet["Delete snippet<br/>[deleteMyTweets.js]"]
node_twitter["Twitter page"]

node_user -->|"runs in console"| node_snippet
node_snippet -->|"scrolls and clicks Delete"| node_twitter

click node_snippet "https://github.com/g-h-0-s-t/deletealltweets/blob/main/deleteMyTweets.js"

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_snippet toneTeal
class node_twitter toneIndigo
```

## Components

### Other components

- **Logged-in user**
- [Delete snippet](https://github.com/g-h-0-s-t/deletealltweets/blob/main/deleteMyTweets.js): `deleteMyTweets.js`
- **Twitter page**

## Connections

- Logged-in user → Delete snippet: runs in console
- Delete snippet → Twitter page: scrolls and clicks Delete
