You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/changelog/r2/2025-03-06-r2-bucket-locks.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,21 @@ Locks allow you to:
13
13
- Lock objects for a specific duration. For example, 90 days.
14
14
- Retain objects until a certain date. For example, until January 1, 2030.
15
15
- Keep objects locked indefinitely.
16
+
16
17
Buckets can have up to 1,000 [bucket lock rules](/r2/buckets/). Each rule specifies which objects it covers (via prefix) and how long those objects must remain retained.
17
18
19
+
Here are a couple of examples showing how you can configure bucket lock rules using [Wrangler](/workers/wrangler/):
20
+
21
+
#### Ensure all objects in a bucket are retained for at least 180 days
For more information on bucket locks and how to set retention policies for objects in your R2 buckets, refer to our [documentation](/r2/buckets/bucket-locks/).
0 commit comments