DO Ideas 2

Make it possible to expire files in Spaces.

I use spaces for logging data that I don't want to have in my database (mainly because of the size of the data). When creating the files it would be awesome to be able to set a expiry flag to make sure that the files will be automatically removed after X time.

  • Harold
  • Sep 11 2018
  • Attach files
  • Vadim Gusev commented
    September 11, 2018 15:50

    I was able to set Epriation after 1 day for a Prefix via s3cmd, yet files are not deleted even after 3 days. I was wondering if API docs are misleading or I've done something wrong?

  • Anonymous commented
    September 11, 2018 15:50

    Would be great if we could set TTL to entire folder trough dashboard

  • ├ôscar de Arriba commented
    September 11, 2018 15:50
  • Jeff Ferguson commented
    September 11, 2018 15:50

    Some type of lifecycle for files would be very convenient and shouldn't be that difficult to implement although now I think I should write a bash script to accomplish this in the meantime :)

  • Jonathan commented
    September 11, 2018 15:50

    It seems from your API docs that this should alread be possible?

    https://developers.digitalocean.com/documentation/spaces/#create-bucket-lifecycle

  • Roeland commented
    September 11, 2018 15:50

    This would also be great to remove old backups after x days.

  • Harold commented
    September 11, 2018 15:50

    Awesome, thanks! :)

  • John Gannon commented
    September 11, 2018 15:50

    Hi Harold - thanks for the feedback. We hope to be able to support this soon. Can't promise a specific date yet but it's something we're looking at prioritizing.