Delete all gcode files in octoprint with one click?

What is the problem?

Want to delete all STLs gcode files with one button click.

What did you already try to solve it?

Searched for a post in the Forum, didn't find one.

Have you tried running in safe mode?

Nope. Will not help for sure. :wink:

Additional information about your setup

  • OctoPrint 1.8.2
  • Python 3.7.3
  • OctoPi 0.17.0

Not really a problem, but! :smiley:

I have times a print a lot of different stuff. Uploading loads of STLs gcode files, some of them are really large.
This seems to slow down the OctoPrint GUI considerably.
Hence I delete the STLs gcode files from time to time.
When I have collected a bunch of them, this starts to be a bit tedious.

It's not a serious problem, but is there a way to delete all of the STLs gcode files uploaded at once?

I am also fine with SSHing to the Raspberry PI and delete them.
Knowing where the STLs gcode files are would me help as well, I guess.
Just in case it doesn't mess up the UI deleting them by rm * in the correct directory.

Edit: had been confused and wrote STLs instead of gcode files in the original post, which makes no sense of course... fixed that

On your OctoPi install, they would be in ~/.octoprint/uploads. From there you can remove them. It shouldn't break anything to just remove them from there with an rm.

1 Like

Thanks. Good to know.

I would use rm *.gcode in this case

gcode or stl?

2 Likes

I assumed that was a typo and that he was talking about gcodes - but you're right

In that case it should be rm *.stl

2 Likes

Yes, of course I ment *.gcode files!
I edited my post for clarity...

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.