code: public int deleteFiles( File directory, FileFilter fileFilter )
              throws MojoExecutionException
      {
          File[] files = directory.listFiles( fileFilter );
  
          if ( getLogger().isDebugEnabled() )
          {
              getLogger().debug( "deleteFiles in " + directory + " found " + files.length + " file(s) to delete" );
          }
  
          if ( files.length == 0 )
          {
              return 0;
          }
  
          for ( File file : files )
          {
              deleteFile( file );
          }
          return files.length;
      }
docs: {@inheritDoc}