class S3SentinelFilesCleaner implements SentinelFilesCleaner {

  @Override
  public void deleteSentinelFiles(String absolutePath) {
    AmazonS3URI s3Path = new AmazonS3URI(absolutePath, true);
    String bucket = s3Path.getBucket();
    String key = s3Path.getKey();

    getSentinelFile(bucket, key).ifPresent(sentinelFile -> s3Client.deleteObject(bucket, sentinelFile));
  }

  public  S3SentinelFilesCleaner(S3Client s3Client);

}