Skip to content

Commit f41a7fb

Browse files
committed
update
1 parent f0ac3b8 commit f41a7fb

File tree

2 files changed

+106
-6
lines changed

2 files changed

+106
-6
lines changed

pages/storage_and_backup/object_storage/s3_versioning/guide.en-gb.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,64 @@ When versioning is enabled:
158158
>> ![download current or versioned objects](images/bucket_download_versions.png)
159159
>>
160160
161+
### Object deletion: simple, permanent deletion and Delete Marker management
162+
163+
> [!primary]
164+
>
165+
> If versioning is enabled on your S3 bucket, deleting an object adds a Delete Marker: the object disappears from the default view, but remains visible via the View versions option.
166+
>
167+
> This protection allows you to restore an object deleted by mistake.
168+
>
169+
170+
> [!tabs]
171+
> Via the OVHcloud customer area
172+
>> From the main page of your Object Storage bucket, or from the object details page, you can delete your object by clicking on `delete`{.action}.
173+
>>
174+
>> ![delete current or versioned objects](images/bucket_download_versions.png)
175+
>>
176+
>>
177+
>> To delete a version definitively, click on the `three dots`{.action}, then on `Delete`{.action}, and confirm the definitive deletion action.
178+
>>
179+
>>
180+
> Via the AWS CLI
181+
>> To delete an object, use the following command:
182+
>>
183+
>> ```bash
184+
>> aws s3api delete-object --bucket <bucket> --key <objet>
185+
>> ````
186+
>>
187+
>> If you want to see the different versions of an object, use the following command:
188+
>>
189+
>> ```bash
190+
>> aws s3api list-object-versions --bucket <bucket> --prefix <objet>
191+
>> ```
192+
>>
193+
>> To delete a specific version of an object:
194+
>>
195+
>> ```bash
196+
>> aws s3api list-object-versions --bucket <bucket> --prefix <objet>
197+
>> ```
198+
>>
199+
>> If you wish to delete a `delete marker` to recover your object version, proceed as follows:
200+
>>
201+
>> - List delete markers and identify the version-id of the delete marker:
202+
>>
203+
>>
204+
>> ```bash
205+
>> aws s3api list-object-versions --bucket my-bucket --prefix my-object. txt \
206+
>> --query "DeleteMarkers" --output json
207+
>> ````
208+
>>
209+
>> - Delete this delete marker:
210+
>>
211+
>> ```bash
212+
>> aws s3api delete-object \
213+
>> --bucket my-bucket \
214+
>> --key my-object.txt \
215+
>> --version-id <delete-marker-version-id>
216+
>> ````
217+
>>
218+
161219
### Important Considerations
162220
163221
- **Storage Costs:** Each version of an object is stored as a full object, incurring Standard Object Storage costs.

pages/storage_and_backup/object_storage/s3_versioning/guide.fr-fr.md

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,62 @@ Lorsque le versioning est activé :
161161
162162
### Suppression d’objets : suppression simple, définitive et gestion des Delete Markers
163163
164+
> [!primary]
165+
>
166+
> Si le versioning est activé sur votre bucket S3, la suppression d’un objet ajoute un Delete Marker : l’objet disparaît de la vue par défaut, mais reste visible via l’option Voir les versions.
167+
>
168+
> Cette protection permet de restaurer un objet supprimé par erreur.
169+
>
170+
164171
> [!tabs]
165172
> Via l'espace client OVHcloud
166173
>> Depuis la page principale de votre bucket Object Storage ou depuis la page de détails d’un objet, vous pouvez supprimer votre objet en cliquant sur `supprimer`{.action}.
167174
>>
168175
>> ![delete current or versioned objects](images/bucket_download_versions.png)
169176
>>
170-
>> > [!primary]
171-
>> >
172-
>> > Si le versioning est activé sur votre bucket S3, la suppression d’un objet ajoute un Delete Marker : l’objet disparaît de la vue par défaut, mais reste visible via l’option Voir les versions.
173-
Cette protection permet de restaurer un objet supprimé par erreur.
174-
Pour supprimer définitivement une version, cliquez sur les `trois points`{.action}, puis sur `Supprimer`{.action}, et confirmez l’action de suppression définitive.
175-
>> >
177+
>>
178+
>> Pour supprimer définitivement une version, cliquez sur les `trois points`{.action}, puis sur `Supprimer`{.action}, et confirmez l’action de suppression définitive.
179+
>>
176180
>>
177181
> Via l'AWS CLI
182+
>> Pour supprimer un objet, utilisez la commande suivante :
183+
>>
184+
>> ```bash
185+
>> aws s3api delete-object --bucket <bucket> --key <objet>
186+
>> ```
187+
>>
188+
>> Si vous souhaitez voir les différentes versions d'un objet, utilisez la commande suivante :
189+
>>
190+
>> ```bash
191+
>> aws s3api list-object-versions --bucket <bucket> --prefix <objet>
192+
>> ```
193+
>>
194+
>> Pour supprimer une version spécifique d'un objet :
195+
>>
196+
>> ```bash
197+
>> aws s3api list-object-versions --bucket <bucket> --prefix <objet>
198+
>> ```
199+
>>
200+
>> Si vous souhiatez supprimer une étiquette `delete marker` pour récuperer votre version d'objet, procédez comme suit :
201+
>>
202+
>> - Lister les delete markers et identifier le version-id du delete marker.:
203+
>>
204+
>>
205+
>> ```bash
206+
>> aws s3api list-object-versions --bucket my-bucket --prefix my-object.txt \
207+
>> --query "DeleteMarkers" --output json
208+
>> ```
209+
>>
210+
>> - Supprimer ce delete marker :
211+
>>
212+
>> ```bash
213+
>> aws s3api delete-object \
214+
>> --bucket my-bucket \
215+
>> --key my-object.txt \
216+
>> --version-id <delete-marker-version-id>
217+
>> ```
218+
>>
219+
>> l’objet sera de nouveau accessible comme s’il n’avait jamais été supprimé.
178220
>>
179221
180222
### Considérations importantes

0 commit comments

Comments
 (0)