protected static void deleteFile(@Nonnull final File file){
  Check.notNull(file,"file");
  Check.stateIsTrue(!file.exists() || file.delete(),"Cannot delete file '%s'.",file.getPath());
}

protected static void deleteFile ( @ Nonnull final File file ) { Check . notNull ( file , "file" ) ; Check . stateIsTrue ( ! file . exists ( ) || file . delete ( ) , "Cannot delete file '%s'." , file . getPath ( ) ) ; }
removes the given file .
