You can use the EXPDATE or DAYS parameter on the Change Printer
File (CHGPRTF), Create Printer File (CRTPRTF), Change Spooled File Attributes (CHGSPLFA), or Override with Printer File (OVRPRTF) commands
to make a spooled file eligible for deletion using the DLTEXPSPLF command.
For example, the following command creates a job schedule entry
which causes the DLTEXPSPLF command to delete all expired spooled files on
your system every day:
ADDJOBSCDE JOB(DLTEXPSPLF) CMD(DLTEXPSPLF ASPDEV(*ALL))
FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*ALL) SCDTIME(010000) JOBQ(QSYS/QSYSNOMAX)
TEXT('DELETE EXPIRED SPOOLED FILES SCHEDULE ENTRY')