How to let CUPS printer clean up print jobs in the queue after it finished printing out all jobs.
# grep PreserveJobHistory /etc/cups/cupsd.conf
PreserveJobHistory No
To take effect, please restart cups daemon(#/etc/init.d/cups restart) or reboot the machine. I verified on my test environment it works fine.