@Override
				public void run() {
					try {
						TaskListener listener = Execution.this.getContext().get(TaskListener.class);
						listener.getLogger().format("Deleting s3://%s/%s%n", bucket, path);
						AmazonS3 s3Client = AWSClientFactory.create(Execution.this.step.createS3ClientOptions().createAmazonS3ClientBuilder(), Execution.this.getContext());

						if (path != null && !path.endsWith("/") && !path.isEmpty()) {
							this.deleteFile(s3Client);
						} else {
							this.deleteFolder(s3Client);
						}

						listener.getLogger().println("Delete complete");
						Execution.this.getContext().onSuccess(null);
					} catch (Exception e) {
						Execution.this.getContext().onFailure(e);
					}
				}
This is the path to the object.
src/main/java/de/taimos/pipeline/aws/S3DeleteStep.java