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.

5
  • 1
    Have you considered S3's lifecycle rules for this? Commented Dec 6, 2023 at 12:59
  • This is what i'm doing. But my rule doesn't delete the object that i put in the prefix like i described Commented Dec 6, 2023 at 13:19
  • Did you wait a few hours for the lifecycle rules to process? They're not instant. Commented Dec 6, 2023 at 13:21
  • I waited 2 days, my rule run after 1. I think it's something about limiting the scope with filters. Commented Dec 6, 2023 at 13:36
  • i put in the prefix connect/test/2023/12/ because i want to delete objectes inside the "12/" folder Commented Dec 6, 2023 at 13:48

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.