The answer to Gillespie's art worked just fine for me.
However, I also found that you can achieve the same by setting the attributes keyand bucketthe request for the removal of S3 object:
S3DeleteObjectRequest *dor = [[S3DeleteObjectRequest alloc] init];
dor.key = AWS_OBJ_PATH;
dor.bucket = AWS_BUCKET;
[s3Client deleteObject:dor];
source
share