cloud-fs/src/main/java/io/activej/remotefs/CachedFsClient.java
@Override
	public Promise<Void> delete(@NotNull String name) {
		return Promises.all(cacheClient.delete(name), mainClient.delete(name))
				.whenResult(() -> {
					cacheStats.remove(name);
					updateTotalSize();
				});
	}
/**
	 * Deletes file both on server and on cache client
	 *
	 * @return promise of {@link Void} that represents successful deletion
	 */
Deletes file both on server and on cache client
@return promise of  Void that represents successful deletion
Deletes file both on server and on cache client @return promise of Void that represents successful deletion
@Override
	public Promise<Void> delete(@NotNull String name) {
		return Promises.all(cacheClient.delete(name), mainClient.delete(name))
				.whenResult(() -> {
					cacheStats.remove(name);
					updateTotalSize();
				});
	}
@ Override public Promise < Void > delete ( @ NotNull String name ) { return Promises . all ( cacheClient . delete ( name ) , mainClient . delete ( name ) ) . whenResult ( ( ) -> { cacheStats . remove ( name ) ; updateTotalSize ( ) ; } ) ; }
Deletes file both on server and on cache client
 @return promise of {@link Void} that represents successful deletion
Deletes file both on server and on cache client @return promise of { @link Void } that represents successful deletion