class RxFiles {

  @Nonnull
  public Completable delete(@Nonnull final File file) {
    checkNotNull(file, "\'file\' must not be null.");
    
    return exists(file)
        .flatMapCompletable(exists -> exists ?
            Completable.fromAction(() -> FileUtils.forceDelete(file)) :
            Completable.complete());
  }

}