imrahil / OctoPrint-PrintHistory

Plugin for OctoPrint - saves filename, print time and filament usage for each print
GNU Affero General Public License v3.0
63 stars 64 forks source link

Ability to delete all History Data #71

Open geodave810 opened 6 years ago

geodave810 commented 6 years ago

I was wondering if it is possible to add a feature to delete all history data rather than deleting one item at a time. Now that it is the beginning of a new year, I would like to be able to delete all the history after exporting the data from last year. Maybe an option in the export dialog to delete the history after exporting would be a good place for this.

geodave810 commented 6 years ago

I was able to fix this easy enough by: Uninstalling the PrintHistory Deleting: /home/pi/.octoprint/data/printhistory/history.db Reinstalling the PrintHistory

While I was moving the location pointers of octoprint folders to a USBDRV, I made a symbolic link for the history.db & moved that to the USBDRV also. That seems to be working ok.

szernex commented 5 years ago

An actual option to purge the database without having to SSH into the machine would still be appreciated and shouldn't be that hard to implement.