From f2cbd2ffe5c1dd1fff4ee294dffea57077920a5f Mon Sep 17 00:00:00 2001 From: Daryl White <53910321+djwfyi@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:49:52 -0500 Subject: [PATCH] Removes examples to expire all versions with delete marker (#1388) This functionality was never fully implemented and will not be implemented. Closes #1383 --- source/reference/minio-mc/mc-ilm-rule-add.rst | 23 ++++--------------- .../reference/minio-mc/mc-ilm-rule-edit.rst | 19 --------------- 2 files changed, 4 insertions(+), 38 deletions(-) diff --git a/source/reference/minio-mc/mc-ilm-rule-add.rst b/source/reference/minio-mc/mc-ilm-rule-add.rst index ed9a2d33..2b36483a 100644 --- a/source/reference/minio-mc/mc-ilm-rule-add.rst +++ b/source/reference/minio-mc/mc-ilm-rule-add.rst @@ -443,6 +443,10 @@ The following command removes delete markers for objects where the delete marker - Replace :mc-cmd:`PATH ` with the path to the bucket on the S3-compatible host. +.. note:: + + To delete all versions of an object with a delete marker as its latest version, *including the delete marker*, consider using :ref:`batch expiration `. + Required Permissions -------------------- @@ -470,25 +474,6 @@ regardless of its transition status. Use management rules for any potential interactions between expiry and transition rules. -Expire All Versions of a Deleted Object -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Starting with :mc-release:`MinIO Server RELEASE.2024-05-01T01-11-10Z`, MinIO supports deleting all versions of an object that has a delete marker as its latest version. -MinIO only supports this function with JSON. - -To add this function, first export the rule to modify with :mc:`mc ilm rule export`. -Modify the file you exported the rule to with additional JSON that resembles the following: - -.. code-block:: text - :class: copyable - - - 10 - - -This example ``JSON`` expires all versions of the deleted object after 10 days. -Modify the value in the ```` element to the number of days you want to wait after deleting or expiring the object. - S3 Compatibility ~~~~~~~~~~~~~~~~ diff --git a/source/reference/minio-mc/mc-ilm-rule-edit.rst b/source/reference/minio-mc/mc-ilm-rule-edit.rst index 81b199d6..0765827c 100644 --- a/source/reference/minio-mc/mc-ilm-rule-edit.rst +++ b/source/reference/minio-mc/mc-ilm-rule-edit.rst @@ -340,25 +340,6 @@ For permissions required to edit a rule, refer to the :ref:`required permissions Behavior -------- -Expire All Versions of a Deleted Object -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Starting with :mc-release:`MinIO Server RELEASE.2024-05-01T01-11-10Z`, MinIO supports deleting all versions of an object that has a delete marker as its latest version. -MinIO only supports this function with JSON. - -To add this function, first export the rule to modify with :mc:`mc ilm rule export`. -Modify the file you exported the rule to with additional JSON that resembles the following: - -.. code-block:: text - :class: copyable - - - 10 - - -This example ``JSON`` expires all versions of the deleted object after 10 days. -Modify the value in the ```` element to the number of days you want to wait after deleting or expiring the object. - S3 Compatibility ~~~~~~~~~~~~~~~~