Skip to content
← Back to Community
How to mass-delete repls?
Profile icon
h
has Hacker Plan
firefish

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 [earned 5 cycles]
View Answer
Voters
Profile icon
Leroy01010
Profile icon
ChristopherSonc
Profile icon
CallMeScorpion
Profile icon
tussiez
Profile icon
TheOneAndOnly-
Profile icon
CoolCoderSJ
Profile icon
AnthonyMouse
Profile icon
HahaYes
Profile icon
Kai_Justice
Profile icon
programmeruser
Comments
hotnewtop
Profile icon
ch1ck3n

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

Profile icon
firefish
Profile icon
firefish

@ch1ck3n OH YES CLEVER I WILL DO THAT

Profile icon
ch1ck3n

@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.

Profile icon
firefish

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

Profile icon
ch1ck3n
Profile icon
firefish

@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);
Profile icon
firefish

@ch1ck3n

Ew jquery learn normal DOM y

what did the rest say?

Profile icon
ch1ck3n

@firefish i realized you didnt use jquery

Profile icon
faizy179

@ch1ck3n how do you get to this menu were you do this command?

Profile icon
RayhanADev

RIP @firefish 2020

Succeeded in Getting All Repl.it Languages

Profile icon
firefish

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

Profile icon
realTronsi

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

Profile icon
RayhanADev

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

Profile icon
RayhanADev

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

Profile icon
Coder100
Profile icon
firefish

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

Profile icon
realTronsi

@RayhanADev he bribed the mods

Profile icon
Coder100

ok are they deleted yet @firefish

Profile icon
RayhanADev
Profile icon
realTronsi

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

Profile icon
firefish

@RayhanADev He has hacker plan, mine expired yonks ago

Profile icon
firefish

@Coder100 I just had dinner so NotYet Ltd.

Profile icon
Coder100

@realTronsi you send the cookies too lmao

Profile icon
firefish

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

Profile icon
RayhanADev

@firefish i have hacker till next spooktober lmao

Profile icon
RayhanADev

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

Profile icon
Coder100
Profile icon
Coder100

not even llc @firefish

Profile icon
realTronsi

@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

Profile icon
firefish

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

Profile icon
RayhanADev

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

Profile icon
firefish

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

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

please

Profile icon
RayhanADev

@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.

Profile icon
firefish

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

Profile icon
RayhanADev
Profile icon
RayhanADev

@realTronsi wanna work on the Ultimate Dashboard?

Profile icon
firefish

@realTronsi wanna work on the Ultimate Dashboard?

@RayhanADev sure why not

Profile icon
realTronsi

@firefish

@realTronsi wanna work on the Ultimate Dashboard?

@RayhanADev sure why not

@firefish sure why not

Profile icon
firefish

@realTronsi wanna work on the Ultimate Dashboard?

@RayhanADev sure why not

@firefish sure why not

@realTronsi sure why not

Profile icon
RayhanADev
Profile icon
firefish

@RayhanADev so yeah let's work on this

Profile icon
RayhanADev

@firefish lmao oke you can join in too.

Profile icon
RayhanADev

@firefish did you get invite?

Profile icon
Whippingdot

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

Profile icon
RayhanADev

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

Profile icon
Whippingdot

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

Profile icon
RayhanADev

@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)

Profile icon
Whippingdot

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

Profile icon
Whippingdot

Meaning yes, invite me. @RayhanADev

Profile icon
RayhanADev

@Whippingdot I wouldn’t know OKE!

Profile icon
Whippingdot

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

Profile icon
RayhanADev

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

Profile icon
Whippingdot

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

Profile icon
firefish

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

Profile icon
RayhanADev

@firefish of course xD.

Profile icon
Whippingdot

You're very welcome @firefish

Profile icon
firefish

Your very welcome

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

Profile icon
RayhanADev

@firefish hahahhahahahahhahahha
awesome.

Profile icon
Whippingdot

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

Profile icon
Whippingdot

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

Profile icon
RayhanADev

@Whippingdot sorry grammar trumps all lmao. xD

Profile icon
Whippingdot

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

Profile icon
firefish

@Whippingdot sorry grammar trumps all lmao. xD

@RayhanADev so true lmao

Profile icon
firefish

@Whippingdot well that ain't many symbols

Profile icon
Whippingdot

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

Profile icon
firefish

@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.

Profile icon
Whippingdot

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

Profile icon
firefish

@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.

Profile icon
Whippingdot

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

Profile icon
firefish

@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

Profile icon
Whippingdot

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

Profile icon
firefish

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.

Profile icon
Whippingdot

Why are you scared, @firefish

Profile icon
firefish

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

Profile icon
Whippingdot

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

Profile icon
firefish

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

Profile icon
Whippingdot

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

Profile icon
firefish

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

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

Profile icon
Whippingdot
Profile icon
firefish

@Whippingdot HOW THE FLIP DID YOU FIND MY GITHUB ACCOUNT

Profile icon
Whippingdot

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

Profile icon
inyourface3445

@firefish shure why not

Profile icon
firefish

@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);
Profile icon
realTronsi
Profile icon
firefish

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

Profile icon
realTronsi

@firefish ur gay

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

Profile icon
firefish

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

Profile icon
firefish

@realTronsi Still thinking broccoli is celery then?

Profile icon
HackermonDev

Code a nodejs program to do it.

Profile icon
firefish

@PDanielY erm how lol

Profile icon
HackermonDev

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

This file cannot be displayed: https://repl.it/languages/fsharp

Profile icon
firefish
Profile icon
HackermonDev
Profile icon
Codemonkey51
Profile icon
ThisUserTaken

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

Profile icon
TsunamiOrSumth

@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 😳

Profile icon
HackermonDev

@TsunamiOrSumth yea thats the point ;-;

Profile icon
TsunamiOrSumth

@PDanielY im a confuzzled

Profile icon
firefish

@TsunamiOrSumth it's black magic

Profile icon
Whippingdot

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

Profile icon
firefish

@PDanielY I really want you to delete this now
image

Profile icon
Codemonkey51

It's called hax @firefish

Profile icon
firefish

@Codemonkey51 IT'S CALLED ABUSING HTTP

Profile icon
Codemonkey51

:) reeeeeee @firefish

Profile icon
firefish

@PDanielY Hm... would suggest deleting this
image

Profile icon
firefish

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

Profile icon
TsunamiOrSumth

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

Profile icon
firefish

@TsunamiOrSumth haha yuo are gonna ignor "e" spam

Profile icon
[deleted]

how do you even do that lol

Profile icon
firefish

@DevAxl do what lol

Profile icon
[deleted]

@firefish where to run the script

Profile icon
[deleted]

@firefish you could make an ai to mass delete it

Profile icon
firefish

@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

Profile icon
[deleted]

@firefish yes I mean bot

Profile icon
firefish

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

Profile icon
ColePete

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!

Profile icon
firefish
Profile icon
ColePete

@firefish what do you mean no?

Profile icon
firefish

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

Profile icon
ColePete

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

Profile icon
firefish

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

Profile icon
ColePete

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

Profile icon
Leroy01010
XD 145 new repls oof
Profile icon
xxpertHacker

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

Profile icon
firefish
Profile icon
xxpertHacker

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

Profile icon
firefish

@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

Profile icon
xxpertHacker

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

Profile icon
firefish

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

Profile icon
firefish

@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);
Profile icon
xxpertHacker

@firefish (o_o) Good job.

Btw, I opened this some time ago: https://repl.it/feedback/p/bulk-operations

Profile icon
HahaYes

lol gg

Profile icon
firefish

@HahaYes sórry for le pungery

Profile icon
firefish

@HahaYes i ain't giving you dem cycles back

Profile icon
bwoop

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

Profile icon
bwoop

ctrl z

Profile icon
firefish

@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

Profile icon
bwoop

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

Profile icon
firefish

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

Profile icon
xxpertHacker

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 :) )

Profile icon
FlaminHotValdez

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

Profile icon
RYANTADIPARTHI

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

Profile icon
firefish
Profile icon
RYANTADIPARTHI

@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.

Profile icon
Coder100

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

Profile icon
firefish

@Coder100 lol génius pog

Profile icon
OlauPla

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

Profile icon
programmeruser

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

Profile icon
firefish

@programmeruser oh wait... thankyou lol

Profile icon
TsunamiOrSumth

ouch

Profile icon
RayhanADev

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

Profile icon
firefish

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

Profile icon
RayhanADev

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

Profile icon
firefish

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

Profile icon
realTronsi

@firefish nope you can't

Profile icon
realTronsi

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

Profile icon
firefish

@realTronsi like maybe mods can

Profile icon
firefish

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

Profile icon
realTronsi

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

Profile icon
firefish

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

Profile icon
realTronsi

@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

Profile icon
realTronsi

@firefish I don't see those 145 repls

Profile icon
firefish
Profile icon
firefish
Profile icon
realTronsi

@firefish but fetch can access cookies?

Profile icon
realTronsi

@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

Profile icon
programmeruser

@realTronsi probably

Profile icon
RayhanADev

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

Profile icon
firefish

@RayhanADev oof gimme a millenium

Profile icon
RayhanADev

@firefish hahahhahahaha lmao

Profile icon
FlaminHotValdez
Profile icon
FlaminHotValdez

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

Profile icon
firefish

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

Profile icon
firefish

@RayhanADev me dumb lol

Profile icon
RayhanADev

@firefish oof, big brain move there.