class WorkspaceFileSystem implements WorkspaceContentAddressableStorage {

    @Override
    public void purgeContainer(String containerName)
        throws ContentAddressableStorageNotFoundException, ContentAddressableStorageServerException {
        if (!isExistingContainer(containerName)) {
            LOGGER.info(ErrorMessage.CONTAINER_NOT_FOUND.getMessage() + containerName);
            throw new ContentAddressableStorageNotFoundException(
                ErrorMessage.CONTAINER_NOT_FOUND.getMessage() + containerName);
        }
        try {
            Path containerPath = getContainerPath(containerName);
            try (Stream<Path> streams = Files.walk(containerPath, FileVisitOption.FOLLOW_LINKS)) {
                streams.filter(path -> !containerPath.equals(path))
                    .sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete);
            }
        } catch (IOException ex) {
            throw new ContentAddressableStorageServerException(ex);
        }
    }

    public  WorkspaceFileSystem(StorageConfiguration configuration);

}