public void purge ( ) throws VictimsException { try { File cache = new File ( location ) ; if ( cache . exists ( ) ) { FileUtils . deleteDirectory ( cache ) ; } create ( cache ) ; } catch ( IOException e ) { throw new VictimsException ( "Could not purge on disk cache." , e ) ; } }
Purge the cache . The cache directory is removed and re - recreated .