private void deleteFolder(AmazonS3 s3Client) throws IOException, InterruptedException {
					// This is the list of keys to delete from the bucket.
					List<String> objectsToDelete = new ArrayList<>();

					// See if the thing that we were given is a file.
					if (!path.isEmpty() && s3Client.doesObjectExist(bucket, path)) {
						objectsToDelete.add(path);
					}

					this.searchObjectsRecursively(s3Client, objectsToDelete);

					// Go through all of the objects that we want to delete and actually delete them.
					for (String objectToDelete : objectsToDelete) {
						Execution.this.getContext().get(TaskListener.class).getLogger().format("Deleting object at s3://%s/%s%n", bucket, objectToDelete);
						// TODO Use deleteObjects to reduce API calls
						s3Client.deleteObject(bucket, objectToDelete);
					}
				}
This is the path to the object.
src/main/java/de/taimos/pipeline/aws/S3DeleteStep.java