How do you get the console to automatically clear when running your program each time?

Every time I run my code the console still has the previous program in the console. This has only just started to happen in the past week. How do you change the settings to clear the console EVERY time you run your program?


Hi @mrlinnell1950 , welcome to the forums!
This is a new feature that Replit has recently added.
You cannot remove it, but you can clear previous run history by clicking the Trash icon above the Console.
Hope this helps!

1 Like

Some feedback if I may - this is a poor feature to add - particularly for students I am teaching. It is frustrating that students will now be confused with a cluttered console which will lead to losing confidence in programming.


Hi @mrlinnell1950 !
You can put a vote in this topic:

Meanwhile, Replit probably won’t change it and you’ll have to live with this.

1 Like

I don’t know what language you are using, but a “workaround” in python to remove previous runs is described here:

That’s interesting because I tried changing the run command to clear && python3 and I didn’t think it worked.

Maybe I should have run it more times. :man_shrugging:

Can you elaborate on that?

Clearing the console only clears the contents of the current run, so the workaround pushes away the previous runs with newlines, then clears those newlines so that the output near the top.

I had no idea that was possible.

1 Like

me too its bad update they do


Hi guys, I’m coming here for same problem, is an horrible thing to clear the console each time I run codes by clicking -.-’

Searching on settings,“Keyboard shortcuts”, I realised that in the end of the option’s list has an enter “Clear console history”, where you could record a “short cut” for it.

Hope this info suites you well in some way.