code: @Override
     public synchronized boolean delete()
     {
        if (users != null && users.size() <= 0)
        {
           // make unusable
           users.clear();
           users = null;
  
           final SpoolFile sf = this;
  
           PrivilegedAction<Boolean> action = new PrivilegedAction<Boolean>()
           {
              public Boolean run()
              {
                 return sf.exists() ? SpoolFile.super.delete() : true;
              }
           };
           return SecurityHelper.doPrivilegedAction(action);
  
        }
  
        return false;
     }
docs: ------- java.io.File -------