Ask coding questions

← Back to all posts
How to mass-delete repls?
firefish (947)

I was having a play with the KNOWN_LANGUAGES object when I decided to try

Object.keys(KNOWN_LANGUAGES).forEach(i => fetch(`https://repl.it/languages/${i}`));

Which you can probably guess what happened.
It created 145 new repls. How do I delete them all without manually going click delete 145 times?

Answered by ch1ck3n (2027) [earned 5 cycles]
View Answer
Comments
hotnewtop
ch1ck3n (2027)

why don't you make a script in the console?

firefish (947)

@ch1ck3n OH YES CLEVER I WILL DO THAT

ch1ck3n (2027)

@firefish Well, you querySelector all of the delete buttons like this:

$(".downshift-```whatever number here```-menu").last().click()

and we go from the highest number and to the bottom.

firefish (947)

@ch1ck3n ew jquery learn the normal DOM you lazy small-brain

firefish (947)

@ch1ck3n haha works like a charm lol

const ree = l => document.querySelector(l).click();
window.setInterval(() => {
    ree("button.jsx-525591542");
    ree("button.jsx-2801395914");
    ree("button.jsx-2464409669.negative");
}, 1000);
firefish (947)

@ch1ck3n

Ew jquery learn normal DOM y

what did the rest say?

ch1ck3n (2027)

@firefish i realized you didnt use jquery

RayhanADev (2510)

RIP @firefish 2020

Succeeded in Getting All Repl.it Languages

firefish (947)

@RayhanADev It's not that I attempted, I succeeded, I attempted to undo that's what killed me

realTronsi (929)

@firefish dw you still have less unnamed projects than @Coder100

RayhanADev (2510)

@firefish lmao changed it xD. (This has been the most hilarious 10 minutes of my life xD)

RayhanADev (2510)

@realTronsi holy cow Coder has a crap ton how does he still have space???

firefish (947)

@RayhanADev This has been the most embarrassing 10 minutes of my life

Coder100 (18057)

ok are they deleted yet @firefish

realTronsi (929)

@Coder100 im so confused how that works though, he used fetch, but you authenticate using cookies so I'm so confused

firefish (947)

@RayhanADev He has hacker plan, mine expired yonks ago

firefish (947)

@Coder100 I just had dinner so NotYet Ltd.

Coder100 (18057)

@realTronsi you send the cookies too lmao

firefish (947)

@realTronsi no lol, the grilled cookie knows nothing about cookies why re you asking him

RayhanADev (2510)

@firefish i have hacker till next spooktober lmao

RayhanADev (2510)

@Coder100 how would I replicate this except from a NodeJS project?

realTronsi (929)

@firefish no but you send an http request and somehow repl knows your cookie now? if thats the case this is a massive security risk because you can just steal ppl's cookies

firefish (947)

@RayhanADev erm get the value of KNOWN_LANGUAGES and erm.... lol wait verygut idea

RayhanADev (2510)

@firefish how to do??? I need to knows?

firefish (947)

@RayhanADev HOLD UP
change Object.keys(stuff) to

`https://repl.it/languages/${Object.keys(stuff)}`

please

RayhanADev (2510)

@firefish yeah i figured that bit out

const atob = str => Buffer.from(str, 'base64').toString('binary');
const fs = require('fs');

let stuff = JSON.parse(atob(fs.readFileSync('klangs').toString()));
// console.log(stuff);

let url;

for (i = 0; i < Object.keys(stuff).length; i++) {
  url = 'https://repl.it/languages/' + Object.keys(stuff)[i];
  
  console.log(url) 
  require("node-fetch")(url);
}

but I can’t log into my account now xD.

firefish (947)

@RayhanADev what is your alt account's name, maybe that's a bug

RayhanADev (2510)

@realTronsi wanna work on the Ultimate Dashboard?

firefish (947)

@realTronsi wanna work on the Ultimate Dashboard?

@RayhanADev sure why not

realTronsi (929)

@firefish

@realTronsi wanna work on the Ultimate Dashboard?

@RayhanADev sure why not

@firefish sure why not

firefish (947)

@realTronsi wanna work on the Ultimate Dashboard?

@RayhanADev sure why not

@firefish sure why not

@realTronsi sure why not

firefish (947)

@RayhanADev so yeah let's work on this

RayhanADev (2510)

@firefish lmao oke you can join in too.

Whippingdot (652)

What is the Ultimate Dashboard, can I join. @RayhanADev

RayhanADev (2510)

@Whippingdot ababbabahba nononono secret nobody should know (and also are you good nodejs?)

Whippingdot (652)

🤔😢😢. Nooooo!!! Nope. @RayhanADev

RayhanADev (2510)

@Whippingdot rip xD, the project is in NodeJS (if you want I can invite you and explain what it is if you promise to keep it secret)

Whippingdot (652)

Have I ever revealed a secret for the more than a month I have been on repl.it. The answer is no! @RayhanADev

Whippingdot (652)

I reply on EVERY SINGLE POST of most people. Including you. Try to remember me. I will be here for a long time I hope, I usually don't stay on one thing. Like I keep on switching websites which I use to learn coding from @RayhanADev

RayhanADev (2510)

@Whippingdot lmao yea I know you, you follow my empty Github xD. Anyways I added you.

Whippingdot (652)

🤣 I like doing random stuff to waste time when I can be productive and study. I still get good marks in exams though. @RayhanADev

firefish (947)

@Whippingdot @RayhanADev Seriously? 16 pings? Thank you very much, really appreciate it

firefish (947)

Your very welcome

@Whippingdot I don't recall owning a very welcome, maybe you meant you're?

RayhanADev (2510)

@firefish hahahhahahahahhahahha
awesome.

Whippingdot (652)

Bully. 😢😢😢😢. 🤣. You are ve ry wel come @firefish

Whippingdot (652)

I thought you were are on my side. 😢😢🤣🤣 @RayhanADev

RayhanADev (2510)

@Whippingdot sorry grammar trumps all lmao. xD

Whippingdot (652)

BETRAYER, YOU SHALL NEVER EARN MY TRUST. AHHHHHHHGRRRRAAAHHHH!!! 😁😁😁😁•℃℃⁕‣‶⁑⁚·(me just spamming all the symbols I can find) @RayhanADev

firefish (947)

@Whippingdot sorry grammar trumps all lmao. xD

@RayhanADev so true lmao

firefish (947)

@Whippingdot well that ain't many symbols

Whippingdot (652)

I tried putting every emoji there once but it took to long. Had to give up, burnt fish. @firefish

firefish (947)

@Whippingdot who are you calling burnt, the only guy who's burnt here is the grilled cookie - @Coder100, who was in fact burnt at 1234°C on a stake, for deleting index.html. He also changed the listening port from 6111 to 8080, thus giving him another nickname: port 8080 (which i of course added into the urban dictionary). For more information contact @HahaYes.

Whippingdot (652)

Man, sometimes burnt fish lose their brains. Other non-burnt fish can't understand them. @firefish

firefish (947)

@Whippingdot look, all i did was make a joke on the fact that you used the wrong your/you're. If I were you, I'd edit the comment, and pretend like it never happened. But not you, you start calling people burnt.

Whippingdot (652)

Ughh, I hate this. I am not speaking in a mean tone. I am speaking in a joking tone bruh. Sry if that was mean. I don't mean to be mean. If you knew me then you would know I don't like being mean. Just a joke. Sry! @firefish

firefish (947)

@Whippingdot Well I was doing the exact same thing, making a joke. but yours was too un-jokey it didn't seem like a joke

Whippingdot (652)

That is cause you didn't hear my tone. Your name is fire fish, so I was going to write firey fish, but then that is not a word so I changed it to burnt fish. @firefish

firefish (947)

That is cause you didn't here my tone.

@Whippingdot I really want to make another joke out of here and hear, but now I'm scared.

firefish (947)

@Whippingdot Well look what happened last time I made a joke about bad grammar

Whippingdot (652)

It is ok, you can do it. I like jokes. I didn't mean this to get serious. I will give you upvotes to make up for it. @firefish

firefish (947)

@Whippingdot clears throat then gives lecture about how giving cycles for the sake of it is against the rules

Whippingdot (652)

Aww, then bye bye cycles for @firefish. Oh, and why are you not in the ultimate dashboard, I thought you were going to join

firefish (947)

@Whippingdot been kicked out i think (here are all repls i've been invited to):


god will @TravisRaney stop inviting people, I'll report him

firefish (947)

@Whippingdot HOW THE FLIP DID YOU FIND MY GITHUB ACCOUNT

Whippingdot (652)

Through @RayhanADev. I follow him and he started following you and other people so I started following everyone I know. @firefish

firefish (947)

@RayhanADev @realTronsi @Coder100 @Coder100 haha done lol after all of this time

const ree = l => document.querySelector(l).click();
window.setInterval(() => {
    ree("button.jsx-525591542");
    ree("button.jsx-2801395914");
    ree("button.jsx-2464409669.negative");
}, 1000);
firefish (947)

@realTronsi Fun Fact: Back in the 19th century, nice meant ignorant.

realTronsi (929)

@firefish ur gay

Fun Fact: Back in the 69th century, gay meant happy/pleasant (nice), and nice meant ignorant.

firefish (947)

@realTronsi guys a time traveller from 6837 has come to haunt us

firefish (947)

@realTronsi Still thinking broccoli is celery then?

HackermonDev (2020)

Code a nodejs program to do it.

HackermonDev (2020)

By looking at this comment, I just created an F# repl on your account. Go check your repls 😉

https://repl.it/languages/fsharp

ThisUserTaken (243)

@PDanielY im so dumb i actually clicked on the image. :|

TsunamiOrSumth (555)

@PDanielY why did i get an f# repl i didnt do anything to you
edit: hol up i didnt even click the image but today i found an unamed f# repl that i never made 😳

Whippingdot (652)

This was actually scary. i thought a hacker gained access to my account and started creating random F# repls @PDanielY

firefish (947)

@PDanielY I really want you to delete this now

firefish (947)

@PDanielY Hm... would suggest deleting this

firefish (947)

@TsunamiOrSumth I know this is a random post, but thanks a lot.

TsunamiOrSumth (555)

@firefish np :>
(bruh i did like 10 of those)

firefish (947)

@TsunamiOrSumth haha yuo are gonna ignor "e" spam

[deleted]

how do you even do that lol

[deleted]

@firefish where to run the script

[deleted]

@firefish you could make an ai to mass delete it

firefish (947)

@DevZlx Like I have enough knowledge to be able to do that also that's not how ai works, i think you mean a bot, but still I have no idea

[deleted]

@firefish yes I mean bot

firefish (947)

@DevZlx yeah but I still have no idea how to do that though

ColePete (30)

I am very sorry, but through all of my research, you can't mass delete repls. You might just have to create a new account. Sorry!

firefish (947)

@ColePete no new account
I'll stick with over 250 unnamed repls, it's fine by me

ColePete (30)

@firefish ok, but can you still give me credit for answering your question.

firefish (947)

@ColePete you still haven't solved my problem, so I can't

ColePete (30)

@firefish but there is no solution, so I am still correct.

Leroy01010 (411)
XD 145 new repls oof
xxpertHacker (934)

Has this been solved yet? Are you still swimming in Repls?

xxpertHacker (934)

@firefish How'd you deal with it?
Manually deleting them one by one?

firefish (947)

@xxpertHacker That's what I want to avoid, but anyway, that would be impossible because @PDanielY is creating F# repls from his comment on the post

xxpertHacker (934)

@firefish Lmao, yeah, he got me the first time I checked this too.

firefish (947)

@xxpertHacker I've been gotten around 20 times now, I asked him to delete but he's ignoring. I may just report.

firefish (947)

@xxpertHacker I have just solved it.

// here is my js code to counter the js code
const ree = l => document.querySelector(l).click();
window.setInterval(() => {
    ree("button.jsx-525591542");
    ree("button.jsx-2801395914");
    ree("button.jsx-2464409669.negative");
}, 1000);
firefish (947)

@HahaYes i ain't giving you dem cycles back

bwoop (179)

well i mean that wont work now but i mean that is what you should've done in the beginning

firefish (947)

@bwoop genius: but not working, because it's pretty hard to un-send 145 http requests that ended up creating a repl each, so um.... please add a ctrl-z for fetch mozilla, PLEASE

bwoop (179)

@firefish idk how to help you sorry but if you delete 3 or 4 a day they will be gone in no time

firefish (947)

@bwoop Well not of course with @PDanielY constantly creating F# repls with his image

xxpertHacker (934)

LMAO, I'm dying, real smart move there.

Now honestly, I recommend heading over to repl.it/feedback and asking for mass Repl management options.

I want 'em too. ( I have too many repls and have used well over the 500MB cap :) )

FlaminHotValdez (683)

Either move all of them into the folder and delete the folder or manually click delete 145 times. Or there's some console shenanigans you can do that I don't know T-T

RYANTADIPARTHI (6019)

Do you mean you want to delete them all at once?

RYANTADIPARTHI (6019)

@firefish i don't think there is a way to do that. You have to manually delete them. The only way to do it is call the repl.it team. Call them, and they can do it.

Coder100 (18057)

Well you could move them all into a folder and deleting them, but that's dragging 145 times

OlauPla (156)

If it is something systematic you can do a pyautogui in your own IDE and it will do it automatically

programmeruser (604)

Try looking at the js library here and see if there are any actions in the API that can delete repls.

RayhanADev (2510)

Ummm, I don’t think you can xD. That’s a big rip xD how are there 145 langs though?

firefish (947)

@RayhanADev erm try it lol (on an alt maybe)

RayhanADev (2510)

@firefish I no has pc rn (can i do it from a Repl console?)

firefish (947)

@RayhanADev no lol has to be in le devtools (maybe repl has an XSS loophole lol)

realTronsi (929)

@firefish wait how did you create repls, does repl have some user API?

firefish (947)

@realTronsi it does actually, but can't you see i just use fetch()

realTronsi (929)

@firefish no but how did you make the repl on behalf of your account though..

firefish (947)

@realTronsi the repl.it/languages/[your_lang_here] creates a new repl of [your_lang_here]. Thaat's how secret langs came about.

realTronsi (929)

@firefish

(maybe repl has an XSS loophole lol)

Probably not, XSS is a well known security risk now and most decent websites have protection against it, but imagine if you could write scripts in markdown lol

realTronsi (929)

@firefish I don't see those 145 repls

realTronsi (929)

@firefish but fetch can access cookies?

realTronsi (929)

@firefish oh oof, also good luck getting that 500MB storage back.. I mean if repl does have some API you can go to your CLI and delete all the most recent ones

RayhanADev (2510)

@firefish please sent screenshots of everything in that folder :)

FlaminHotValdez (683)

@firefish I shall create 4 more unnamed repls and exceed your unnamed repl count mwahahaha

firefish (947)

@maxyang Well, thanks to @PDanielY, I now have 186 unnamed repls.