Here he is:
If PaperCut Client is running on the computer, it's possible to notify users when jobs are deleted.
In this case, we need to add this line after "actions.job.cancel();":
actions.client.sendMessage("Your print job was deleted because the printer is in error state");
--------------------------------------
/*
* Delete jobs on error without confirmation
*/
function printJobHook(inputs, actions) {
/*
* If Print queue is in error:
*/
if (inputs.printer.isStatusError) {
/*
* Delete the print Jobs
*/
actions.job.cancel();
}
}