{"id":20723952,"url":"https://github.com/michaelscopic/purge-discord-dms","last_synced_at":"2026-04-19T08:32:24.428Z","repository":{"id":226180321,"uuid":"767961157","full_name":"michaelScopic/purge-discord-dms","owner":"michaelScopic","description":"A Python script to purge all of your messages in a server/DM","archived":false,"fork":false,"pushed_at":"2024-04-26T21:24:39.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T08:34:10.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelScopic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T08:07:27.000Z","updated_at":"2025-02-19T14:32:57.000Z","dependencies_parsed_at":"2024-03-16T23:42:29.388Z","dependency_job_id":"24282d1b-2066-4a09-8aa4-74aa912f4cac","html_url":"https://github.com/michaelScopic/purge-discord-dms","commit_stats":null,"previous_names":["michaelscopic/purge-discord-dms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelScopic/purge-discord-dms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelScopic%2Fpurge-discord-dms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelScopic%2Fpurge-discord-dms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelScopic%2Fpurge-discord-dms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelScopic%2Fpurge-discord-dms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelScopic","download_url":"https://codeload.github.com/michaelScopic/purge-discord-dms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelScopic%2Fpurge-discord-dms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32000234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T04:10:44.007Z","updated_at":"2026-04-19T08:32:24.413Z","avatar_url":"https://github.com/michaelScopic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purge Discord DM's\nA Python script to purge all of your messages in a server/DM\n\nThis repo will not see many updates (if any), but bug reports are still welcome.\n\n### !! SEE TIPS SECTION BEFORE RUNNING THE SCRIPT !!\n\n## TODO\n\nConsidering making the script as a standalone executable for Windows (Linux/Mac support will follow after)\n\n## Requirements \n\n- A Windows/MacOS/Linux system with \u003e= Python 3.9 (written and tested on at least 3.11).\n- Python pip installed (look up how to install it if you don't already have it).\n- Python-tk installed.\n```bash\n# Ubuntu/Debian\nsudo apt install python-tk\n\n# Arch Linux\nsudo pacman -S tk\n\n# Fedora/RHEL\nsudo dnf install python-tk\n```\n- PyAutoGUI installed:\n```bash\npip install pyautogui\n```\n\n## Tips\n\nFrom my usage, **this script can get buggy if a user presses certain keys/mouse placements which could cause you to go into different channels/DM's and REALLY fuck you up,** so I recommend you to install [BetterDiscord](https://betterdiscord.app/) as well as the [Hide Channels plugin](https://betterdiscord.app/plugin/Hide%20Channels). \n\nGo into the channel/DM that you want to purge and then hit `Ctrl` + `H` to hide channels so that there's no way you could click on another DM, and then start the script.\n\n### Virtual machines\n\nI would also highly recommend you run this in a virtual machine because the script completely takes over your keyboard, so you must wait until everything is deleted. I recommend getting VirtualBox with a Linux Mint/Ubuntu (or any distro you like), and then follow the instructions below.\n\n### TO KILL THE SCRIPT\n\n___`Bring your cursor to the **TOP LEFT** of your screen and wait 1-3 seconds and the script will automatically quit.`___\n\n## Downloading and running the script\n\n__!! PLEASE READ THESE CAREFULLY, FAILURE TO DO SO MAY END UP IN PURGING MESSAGES IN THE WRONG CHANNEL/DM. !!__\n\nTo download the script, you can either clone this repo in the command line with `git` or [download it as a .zip file](https://github.com/michaelScopic/purge-discord-dms/archive/refs/heads/main.zip) and place the `purge-discord-dms.py` file into your Downloads folder.\n\n**SUPER IMPORTANT: In Discord, go to the channel/DM you want to purge.**\n\n### Windows users\n\nIf you are using Windows, hit `Win` + `R` and type `cmd` and then hit the `Enter` key.\n\nOpen the file manager with `Win` + `E` and find the script you just downloaded from here.\n\nType `python` (don't forget the space after) and then drag the script into the cmd window, and then hit `Enter`.\n\nThis is an example of what it should look like (THIS IS NOT REFLECTIVE OF EXACTLY WHAT YOU WILL SEE/TYPE):\n```cmd\npython C:\\Users\\xxxx\\Downloads\\purge-discord-dms.py\n```\n\nQuickly `Alt` + `Tab` into the Discord window (or click on the Discord window) and wait 5 seconds, and the bot will start running.\n\n### Linux users\n\nIf you are using Linux (any distro will work), bring up a terminal and go to the directory where you placed my script.\n\nRun this command and hit `Enter`:\n```sh\npython3 ./purge-discord-dms.py\n```\n\nQuickly change the window focus to Discord and wait 5 seconds and the script will start running.\n\n### MacOS users\n\nIf you are using MacOS, press `⌘` + `Spacebar` (⌘ is the Command key), and search for terminal and hit `Enter`.\n\nIf you placed my script in the Downloads folder, type this in to change directory to `Downloads/`:\n```sh\ncd ~/Downloads\n```\n\nThen type this command and hit `Enter`:\n```sh\npython3 ./purge-discord-dms.py\n```\n\nQuickly click on the Discord window and wait 5 seconds and the script will start running.\n\n\n### TO KILL THE SCRIPT\n\n___`Bring your cursor to the **TOP LEFT** of your screen and wait 1-3 seconds and the script will automatically quit.`___\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelscopic%2Fpurge-discord-dms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelscopic%2Fpurge-discord-dms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelscopic%2Fpurge-discord-dms/lists"}