Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: reformat / delete all models in internal storage #80

Open
cibomahto opened this issue Jan 31, 2023 · 1 comment
Open

Comments

@cibomahto
Copy link

When uploading a model over WiFi from PrusaSlicer, I got the message that internal storage was full. First, it wasn't clear how to delete print job files. The only way I could find to do so was to swipe on them one-by-one from the print menu (which seems completely unrelated to the task). Since I hadn't done this before, the printer had around 80 print jobs to delete, which was very tedious! It would be excellent if there was a function to just remove them all in go,

@ankineri
Copy link

ankineri commented Dec 20, 2023

This is my crude JS to do this: https://gist.github.com/ankineri/37706968a097c0b24d6590b1fe4bdcf8
Just open the printer page in a browser and run the above in console.

After it gets the list of files, run await deleteFiles(allFiles) to delete all files or await deleteFiles(allFiles, true) to delete them recursively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants