0

i'm trying to delete folders(objects) in the S3 bucket everyday (with lifecycle rule). I have this scenario : TestBucket -> connect/ -> test/ -> 2023/ -> 12/ -> 01/, 02/, 03/ etc.

I want to delete only 01, 02 objects, how can i specify that? I tried to put in the prefix connect/test/2023/12/ but doesn't work.

New contributor
Andrea Vitangeli is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
5
  • 1
    Have you considered S3's lifecycle rules for this?
    – ceejayoz
    21 hours ago
  • This is what i'm doing. But my rule doesn't delete the object that i put in the prefix like i described 20 hours ago
  • Did you wait a few hours for the lifecycle rules to process? They're not instant.
    – ceejayoz
    20 hours ago
  • I waited 2 days, my rule run after 1. I think it's something about limiting the scope with filters. 20 hours ago
  • i put in the prefix connect/test/2023/12/ because i want to delete objectes inside the "12/" folder 20 hours ago

0

You must log in to answer this question.

Browse other questions tagged .