Batch deleting printers

KB Home   |   Batch deleting printers

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.

Categories: Printers

keywords: delete, bulk delete, remove multiple printers


Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on April 02, 2018, at 06:20 PM
Printable View   |   Article History   |   Edit Article