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
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,13 @@ date: 2025-03-06T10:00:00Z
8
8
9
9
You can now use [bucket locks](/r2/buckets/bucket-locks/) to set retention policies on your [R2 buckets](/r2/buckets/) (or specific prefixes within your buckets) for a specified period — or indefinitely. This can help ensure compliance by protecting important data from accidental or malicious deletion.
10
10
11
-
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. You can:
11
+
Locks allow you to:
12
12
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
+
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
+
16
18
17
19
Here's how you can add a bucket lock rule with [Wrangler](/workers/wrangler/):
0 commit comments