login about faq

Hi - can I please request a method for the HTTP component, to delete multiple objects in an S3 'folder' based on a delimiter path wildcard. (I realise you have S3_DeleteMultipleObjects, but it requires knowledge of the filenames)

asked May 17 at 20:40

bluesix's gravatar image

bluesix
16236


I'm sorry to say it's not something Chilkat can do because of the size and complexity of the operation.

For example, to iterate over all of the objects in a 'folder' could require many request/responses to get the folder listings, given that there's a max number of items returned in any given request. Then it would require (potentially) many requests to delete the matching objects.

It's better that Chilkat provides the lower-level primitives, and a task like this should be written as a function in the application.

link

answered May 20 at 07:17

chilkat's gravatar image

chilkat ♦♦
12.8k317363471

I'm not sure that's correct. The S3 API provides a method to return a list the contents of a "folder" in a single request, using prefix / delimiter strings. Once that's passed back, we can just iterate delete each key. I've used a similar process with a different component from nSoftware.

AWS S3 ListKeys Doc: http://docs.aws.amazon.com/AmazonS3/latest/dev/ListingKeysHierarchy.html

link

answered May 20 at 22:28

bluesix's gravatar image

bluesix
16236

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×204
×23
×13
×3
×2

Asked: May 17 at 20:40

Seen: 354 times

Last updated: May 20 at 22:28

powered by OSQA