Comments (21)
@c-edw you're the best, thank you for walking me through this. i truly appreciate it, it is running now!
from discord-delete.
Another random thought: since full deletion isn't really effective anymore, this whole thing could probably be done as a browser extension...
from discord-delete.
More thoughts on the extension. Discord has maliciously cut off access to localStorage, preventing access to the auth cookie (this is absolutely insane and only reinforces my statement in the README...).
Thankfully, a clever guy has found a way around it. I'll probably use this as a starting point. Though I have no doubts Discord will make things even more difficult in future. Insane.
from discord-delete.
In my experience I've found that getting this running on a Mac running the latest macOS (Mojave) requires:
-Homebrew
-Clone the repo
-brew install python3
-pip3 install aiohttp
-DISCORD_TOKEN=[token] python3 discord_delete.py -v partial
Perhaps in the meantime this could be added to a readme or other file to help other users.
from discord-delete.
@larryqiann
Thanks, you highlighted some good improvements to the wiki pages here which have been added. Most importantly, I forgot to mention to install Python...
Rather than pip3 install aiohttp
, you can use pip3 install -r requirements.txt
to ensure you get all of the dependencies that the project requires. Just for future reference.
from discord-delete.
Another thing I noticed is that the whitelisting/blacklisting nomenclature may benefit from further explanation. Many browser extensions use "whitelist" to refer to "avoid processing these items". When I tested it, it appeared that the opposite was true for this.
from discord-delete.
Yeah, this would be super helpful. I've been trying to run this for the past few days and am constantly running into errors.
from discord-delete.
You're welcome to raise issues for the problems you are encountering. I may rewrite the tool soon if I get the time.
from discord-delete.
Update for those interested: I am rewriting this project in Go on the GoRewrite
branch. I wouldn't recommend using it yet though - I'll make a release and distribution archives when the time comes.
from discord-delete.
Hi,
So I download delete-discord-windows file which is 9.23 MB, not the zip, correct (version 1.1.2)?
After that, I put the file on a place like my desktop and then open powershell. Then I get my auth key, which I believe I am doing correctly, and putting it in between the parenthesis $env:DISCORD_TOKEN="[YOUR TOKEN]"
where [YOUR TOKEN]
would be.
Then I click enter?
Then I copy and paste ./discord-delete-windows partial
into powershell and click enter, but when I do this, I run into various errors.
Can you please help me figure out where I am going wrong @c-edw? Thank you
from discord-delete.
@zyrodos I would be happy to. Can you post the output of ./discord-delete-windows -v partial
? Be sure to redact your token and any numeric IDs (123456789
) from the output.
from discord-delete.
./discord-delete-windows : The term './discord-delete-windows' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- ./discord-delete-windows partial
-
+ CategoryInfo : ObjectNotFound: (./discord-delete-windows:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
from discord-delete.
@zyrodos The command that you're pasting into PowerShell references a program (discord-delete-windows
). See the ./
at the start of the command? That means that you're asking PowerShell to look in the current directory for the program. If the program isn't there, that's what would cause the error that you've pasted above.
I assume that you saved discord-delete-windows
to your Downloads
folder. Try running cd ~/Downloads
in PowerShell, then run ./discord-delete-windows -v partial
after that (and don't forget to set the token too first - $env:DISCORD_TOKEN="[YOUR TOKEN]"
).
from discord-delete.
Hey thanks @c-edw I did that, but ran into this error message:
Program 'discord-delete-windows' failed to run: No application is associated with the specified file for this
operationAt line:1 char:1
- ./discord-delete-windows -v partial
-
At line:1 char:1
- ./discord-delete-windows -v partial
-
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed
from discord-delete.
Hey @zyrodos, I was able to reproduce your issue on my machine and I've created a new release to fix this. Please download the new binary (discord-delete-windows.exe
) and follow the same steps as before.
cd ~/Downloads
$env:DISCORD_TOKEN="[YOUR TOKEN]"
./discord-delete-windows.exe -v partial
from discord-delete.
Thanks, I tried it and got an error:
time="2019-10-27T19:40:29-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/numberstringhere912349324/messages/numberstringhere912349324"
time="2019-10-27T19:40:29-04:00" level=debug msg="Server returned status Too Many Requests"
time="2019-10-27T19:40:29-04:00" level=info msg="Server asked us to sleep for 449 milliseconds"
time="2019-10-27T19:40:30-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/275617516783665152/messages/600475494772899909"
time="2019-10-27T19:40:30-04:00" level=debug msg="Server returned status No Content"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=info msg="Deleting message numberstringhere912349324 from numberstringhere912349324"
time="2019-10-27T19:40:30-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/numberstringhere912349324/messages/numberstringhere912349324"
time="2019-10-27T19:40:30-04:00" level=debug msg="Server returned status No Content"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=info msg="Deleting message numberstringhere912349324 from channel numberstringhere912349324"
time="2019-10-27T19:40:30-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/numberstringhere912349324/messages/numberstringhere912349324"
and it keeps repeating
I replaced the string of numbers that would signify the channel and the server with "randomstringhere912349324"
any idea?
from discord-delete.
@zyrodos It looks like it's working. You'll need to give it some time to finish. Run the command without -v
and it will give you a better idea of what's going on.
from discord-delete.
Hi, I just realized there were some servers and DM convos that it doesn't fully delete things from anymore on Windows. Have you noticed this with other users? @cedws ?
from discord-delete.
Hi, I just realized there were some servers and DM convos that it doesn't fully delete things from anymore on Windows. Have you noticed this with other users? @cedws ?
@larryqiann has also reported this. If it started happening suddenly to multiple people then there's a chance that Discord have updated their API. I will try to take a look tomorrow.
When do you last remember it working?
from discord-delete.
Hey, I think I remember it last working maybe a week(ish) ago? Right now it deletes just some stuff from some channels and seems to skip over a bunch of stuff seemingly at random. Thanks @cedws
from discord-delete.
Hello @zyrodos, a new release has been made with a change that might resolve your issue. Please give this a go. Let's discuss any further deletion problems in #21.
from discord-delete.
Related Issues (20)
- Bans HOT 3
- Ban mitigations HOT 9
- Retain new messages? HOT 5
- Not all messages are being delete HOT 6
- The term "partial" is confusing HOT 9
- Add the ability to skip a channel category using its ID HOT 3
- Add parameter for request delay HOT 2
- how can i completely disable the delete notif in the top right? HOT 2
- Add option to skip pinned messages
- Add feature to delete from all DMs using data request files HOT 11
- What is the correct syntax to specify multiple channels to exclude from deletion? HOT 4
- Error deleting message: Bad status code Bad Request when encountering archived channel messages HOT 2
- Unable to retrieve token from LevelDB HOT 5
- Investigate bulk delete endpoint HOT 1
- go-keychain warning on macOS Ventura HOT 3
- Got my account flagged for phone verication HOT 2
- Add Flag to delete messages from specific channel HOT 1
- Tool reports no more messages to delete for guild while thousands remain HOT 2
- can't make HOT 1
- Allow specific channel deletion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-delete.