How can I set lifecycle rule for object (minIO)?

Viewed 4943

I'm looking for solution that allow me to set lifecycle policy for object in minio storage.

What do I want?
I want to delete objects from minIO storage after 30 min.

Possible, but not suitable solution

  1. Chronos + mc rm -f --older-than 30m.
  2. AWS S3 Lifecycle rule (it doesn't allow to set lifecycle using minutes).
2 Answers

According to this minio

The lifecycle checks every 24 hours. So the 30 mins expiration won't work.

mc rm --recursive --dangerous --force --older-than 30m local

"local" should be described in the file ~/.mc/config.json

Related