To delete a spool file, use one of these:
the command SPOOLF with the parameter ;DELETE
the command PURGE or the command DELETESPOOLFILE
If it can gain access to the file, the PURGE command purges nonprivate output spool files. The DELETESPOOLFILE and SPOOLF ...;DELETE commands purge private output files and nonprivate output files. (In general, you cannot copy, browse, open, store, or alter private files. They are a security mechanism and are discussed in chapter 2.) PURGE and DELETESPOOLFILE have not changed.
You may delete private input spool files using SPOOLF ...;DELETE or DELETESPOOLFILE only if the input spool files are DATA files in the Ready state. Job input spool files can only be deleted with the ABORTJOB command.
To delete output spool file O2050, enter: