> For the complete documentation index, see [llms.txt](https://docs.zata.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zata.ai/manage/bucket/object-lock/compliance-mode.md).

# Compliance Mode

In **Compliance Mode**, a protected object version cannot be overwritten or deleted by **anyone** until its retention period has expired.

* **Strict Enforcement:** Not even the Root User or Zata.ai Support can bypass or shorten the retention period.
* **Flexibility:** You can extend a Compliance retention period, but you can never shorten it.

## Applying a Default Compliance Rule

If your bucket was created with Object Lock enabled, you can configure a **Default Retention Rule** in your Bucket Settings so that all new uploads are automatically protected under Compliance Mode.

1. Navigate to **Bucket > Settings**.
2. Locate the **Default Retention Rule** section.
3. Select **Compliance** from the mode dropdown, and enter the retention period (in days).
4. Click **Apply Changes**.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-ba339e0ec3777f076acfb23e10904e2036511b43%2Fobject-lock-4.png?alt=media" alt="Select Compliance Mode"><figcaption></figcaption></figure>

Confirm your choice by typing "CONFIRM". Remember that Compliance locks cannot be bypassed!

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-85b428c1e144fe53d9c2c0be49b529e1a800d56c%2Fobject-lock-5.png?alt=media" alt="Confirm Compliance Rule"><figcaption></figcaption></figure>

## Managing Compliance on Individual Versions

You can view and extend Compliance settings for specific object versions directly from the Zata Dashboard.

1. Navigate to your bucket and click on an object to expand its versions list.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-e282c16fc103f93da94b36fd43881a1bbc4cee20%2Fobject-lock-dash.png?alt=media" alt="View Object Versions"><figcaption></figcaption></figure>

2. Click on the three dots (Actions) next to a specific version and select **Lock Settings**.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-1179329bba9b6bb0ceb12b51a3293a561b7f408b%2Fobject-lock-dash-2.png?alt=media" alt="Open Lock Settings"><figcaption></figcaption></figure>

3. This opens the **Version Details** panel. Here, you can view the active Compliance lock and its expiration date. To change it, click **Edit**.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-8a6f3f5a2d2a9463c33921a3e45d0557acf36fa6%2Fcompliance.png?alt=media" alt="Compliance Version Details"><figcaption></figcaption></figure>

> **Note:** You can extend an active Compliance retention period, or re-apply retention to a version that has already expired, but you can never shorten an active Compliance lock.

## Deleting a Compliance-Protected Version

> **Note:** Nobody can delete a version that is protected by Compliance mode until the retention period expires.

If you attempt to delete a version protected by Compliance mode, the system will block the action entirely.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-fec52843351ae3aa704a1223e0e8e7e9e550f240%2Fcompliance-delete.png?alt=media" alt="Cannot Delete Compliance Version"><figcaption></figcaption></figure>
