Skip to content

Commit 763ed03

Browse files
committed
feat(obj): update
1 parent bde313e commit 763ed03

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

pages/object-storage/troubleshooting/object-deletion-issues.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,24 @@ I am experiencing issues while deleting objects
2424

2525
## Cause
2626

27-
object is locked
28-
bucket is versioned
27+
- The object you are trying to delete is locked
28+
- The bucket is versioned, and deleting an object adds a **delete marker** rather than deleting the object
2929

3030
## Possible solutions
3131

32-
object is locked
33-
-> check object lock via a HeadObject, if it’s Governance, you can bypass it with a delete object with the header “x-amz-bypass-governance-retention”, also specify the VersionId since a bucket with lock enabled is versioned.
32+
### Object lock
3433

35-
bucket is versioned
36-
A DeleteObject on a versioned bucket with no VersionId specified will create a delete marker and the objects will still exist. To actually delete it, list all the versions with a ListObjectVersions (you can specify the name of your object as prefix) and then send a DeleteObject on each versions.
34+
Check if the object is locked using the [HeadObject](/object-storage/api-cli/object-operations/#headobject) command. If it is locked with the **Governance** retention mode, you can bypass it with the [DeleteObject](/object-storage/api-cli/object-operations/#deleteobject) command using the `x-amz-bypass-governance-retention` header. You must also specify the VersionId of the object, as buckets with object lock enabled are automatically versioned.
35+
36+
### Bucket versioning
37+
38+
A [DeleteObject](/object-storage/api-cli/object-operations/#deleteobject) operation on a versioned bucket with no `VersionId` specified will create a delete marker, and the targeted objects will keep existing. To permanently delete it, list all the versions with [ListObjectVersions](/object-storage/api-cli/bucket-operations/#listobjectversions) (you can specify the name of your object as a prefix), then use the [DeleteObject](/object-storage/api-cli/object-operations/#deleteobject) operation on each version.
3739

3840
## Going further
3941

40-
- Refer to the [bucket policies overview](/object-storage/api-cli/bucket-policy/) for more information on the different elements of a bucket policy.
42+
- Refer to the [object lock documentation](/object-storage/api-cli/object-lock/) for more information.
43+
44+
- Refer to the [bucket versioning documentation](/object-storage/how-to/use-bucket-versioning/) for more information.
4145

4246
- If you did not manage to identify the error and solve it by yourself, [open a support ticket](/account/how-to/open-a-support-ticket/), and provide as many details as possible, along with the necessary information below:
4347
- Object Storage Endpoint (e.g. `s3.fr-par.scw.cloud`)

0 commit comments

Comments
 (0)