Use the LPRM command line approach to remove files in the print queue that were submitted under your current logon name. Use the LPQ command line approach to view a list of the jobs in the print queue.
Enter the following command at the MS-DOS prompt. Follow the example closely with regard to spacing and case.
LPRM -Sserver -Pprinter print file name
For example, use the LPRM command to delete the test.txt file from the print queue: LPRM -S999.9.999.9 -Pprinter1 test.txt
After the -S parameter, enter the IP address Short for Internet Protocol address. A 32-bit (4-byte) binary number that uniquely identifies a host (computer) connected to the Internet to other Internet hosts. or equivalent host name of the print server.
After the -P parameter, enter the name of the print queue on the print server.
Once the server and printer parameters have been defined, enter the job name you want to remove from the print queue. (You can also delete a specific job by entering the job number instead of the job name.)
Add the NDHDUSER (Custom User) column to the Spool Window to view the user that submitted the print job. Add the NDHDQNAM (LPD Queue) column to the Spool Window to view the print queue.