"Key" for file to delete one/many through JetS3t

Archived from the Transloadit support forum. Originally posted on July 12, 2011; details may be outdated, see our docs for current behavior. Original thread

Hi, I’m looking for a way to delete the files that are uploaded though transloadit with JetS3t.
You many have this already implemented but I just can’t see it yet.

The user can change profile photos and i see know point in saving unused photos.

JetS3t uses a “key” to retrieve the the object in a bucket then i can call delete on it.
So i somehow need a key for the original and the 2 resized files in my bucket to delete them.
Is there anyway to add a key to the assemble result meaning the file could be deleted?

Or what’s the best way to do this?
to delete the 3 files at once.

Thanks

You many have this already implemented but I just can’t see it yet.

No, we don’t support an /s3/delete robot / operation at this point.

JetS3t uses a “key” to retrieve the the object in a bucket then i can call delete on it.

The key is most likely the part of the s3 url we give you after the domain, excluding the first /. So for example if this is your url:

http://mybucket.s3.amazonaws.com/REDACTED/5-In-The-Clouds.mp3

The key would be:

REDACTED/5-In-The-Clouds.mp3

Does that work for you?

Or what’s the best way to do this? to delete the 3 files at once.

Amazon only supports a single delete at a time AFAIK. We might support deleting from S3 in the future as well so.

--fg

Correct, I can delete files one at a time as you said.
Thanks

Allan,

I am closing this for now. Please reopen the ticket if you have further questions.

Kind regards,
Tim