I have a scheduled Marklogic task everyday where I access an S3 bucket, process a file (test.xml) in a directory and then add a flag file (test.done) to the same directory to notify that the file is processed. I need to delete the files (both test.xml and test.done) periodically based on the availability of flag file. Is there an option in amazon to create a job which deletes these files periodically?
Is there an option to use xdmp:http-delete()? If so can some one share a sample request with header to do it?