Skip to content

Is any cleanup implementation needed for long term usage? (R2, D1) #970

@rgembalik

Description

@rgembalik

I started playing around opennextjs-cloudflare recently and so far I had many successes. However, after couple deployments, I noticed, that the R2 usage keeps growing. This spun the following question:

Do I need to create any lifecycle policy for R2 cleanup?

I couldn't find anything in documentation about that. I also couldn't find any information about safety of removing r2 objects.

I think it would be good to have those questions answered in the docs:

  • Is it expected for the size of the storage to grow over time?
  • Is it safe to setup lifecycle policy that removes r2 objects after e.g. 30 days?
  • Will my website break if the R2/D1 storage is cleared manually

If I missed anything in the documentation that already describes it, I will be grateful for pointing that out.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions