> 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/governance-mode.md).

# Governance Mode

In **Governance Mode**, users cannot delete or overwrite an object version or alter its lock settings unless they have special permissions.

* **Root User Bypass:** The Root User (account owner) can bypass this lock to delete a protected object. This requires explicitly confirming the deletion in the dashboard by typing "confirm".
* **Subusers:** Subusers cannot bypass Governance Mode.

## Applying a Default Governance 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 Governance Mode.

1. Navigate to **Bucket > Settings**.
2. Locate the **Default Retention Rule** section.
3. Select **Governance** 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-29baf12e65cbfa8a871a3b76f16540cc28506056%2Fobject-lock-1.png?alt=media" alt="Select Governance Mode"><figcaption></figcaption></figure>

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

You will be asked to confirm your choice by typing "CONFIRM".

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

## Removing a Default Governance Rule

To stop automatically locking new uploads under this rule, you can remove it:

1. In the **Default Retention Rule** section, click **Remove Rule**.

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

2. Confirm the removal.

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

> **INFO** Removing the default retention rule stops auto-locking new uploads, but it **does not** unlock objects that are already protected.

## Managing Governance on Individual Versions

You can view and modify Governance 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. To change the retention settings, click **Edit**.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-f13b64661328af42f545fe8b2a47c04e611ee44c%2Fgovernance-to-compliance-1.png?alt=media" alt="Edit Version Details"><figcaption></figcaption></figure>

4. You can upgrade the retention mode (e.g., from Governance to Compliance) or extend the retention date.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-2839baf54bb95f8b8613033901340a926bd9ca0b%2Fgovernance-to-compliance-2.png?alt=media" alt="Change Retention Mode"><figcaption></figcaption></figure>

5. After selecting the new settings, click **Save Retention**.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-fbf23bcfd4230587ee2485517a57dcf7e352c696%2Fgovernance-to-compliance-3.png?alt=media" alt="Save Retention"><figcaption></figcaption></figure>

6. Confirm the new settings.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-f027e19b393e7494c1bb5139db80db30bcb55d3b%2Fgovernance-to-compliance-4.png?alt=media" alt="Confirm Retention Change"><figcaption></figcaption></figure>

7. The version is now protected under the new settings!

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fgit-blob-7a0796a50affe4d0471e4f0af1bc9be578f4f38b%2Fgovernance-to-compliance-5.png?alt=media" alt="Updated Version Details"><figcaption></figcaption></figure>

## Deleting a Governance-Protected Version

> **Note:** Only the Root User (account owner) can bypass the Governance mode and delete the version. Subusers cannot perform this action.

If you are logged in as the root user and attempt to delete a version protected by Governance mode, you will be asked to explicitly type "CONFIRM" to bypass the lock and delete the version.

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