private void removeSpoolFile ( ) throws IOException { if ( spoolFile != null ) { if ( spoolFile instanceof SpoolFile ) { ( spoolFile ) . release ( this ) ; } if ( PrivilegedFileHelper . exists ( spoolFile ) ) { if ( ! PrivilegedFileHelper . delete ( spoolFile ) ) { spoolConfig . fileCleaner . addFile ( spoolFile ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Could not remove file. Add to fileCleaner " + PrivilegedFileHelper . getAbsolutePath ( spoolFile ) ) ; } } } } }
Delete current spool file .