Knowledgebase
Knowledgebase: PaperCut > Printers
 Batch Deleting Printers Last modified on 14 August 2020 01:17 PM 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? 1. The first option is of course, manual hard labor! 2. If your setup is in testing at the moment, one simple option could be simply uninstall and re-install resetting the data. 3. You can use the `delete-printer` 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) iv) `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.