I’d like to remove around 2,400 printers from the database (that were added before I discovered the “ignore printers” option, and was wondering if there is a way I can write or get a script to delete them?
The first option is of course, manual hard labor!
If your setup is in testing at the moment, one simple option could be simply uninstall and re-install resetting the data.
You can use the
server command to script the deletion of the printers.
i) Open a command prompt (run as administrator).
ii) cd C:\Program Files\PaperCut
NG\server\bin\win (or appropriate directory for your platform)
server-command delete-printer "server" "printer"
v) Repeat line above for each printer to delete.
Note: One trick is to maybe use an exported list of printers in EXCEL and a simple string join formula to generate the list of commands, then save the text as a batch file.
For more information on
server-command see the the manual.