Skip to content

Commit 4bf719d

Browse files
committed
feat(obj): update
1 parent ec17f87 commit 4bf719d

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

pages/object-storage/troubleshooting/deleted-objects-still-billed.mdx

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
meta:
3-
title: &title I am still getting billed for deleted objects
3+
title: &title I am getting billed for objects that I cannot see
44
description: &description I don't understand the amount billed compared to the objects that are present in my Scaleway Object Storage bucket
55
content:
66
h1: *title
@@ -20,10 +20,42 @@ dates:
2020

2121
## Problem
2222

23-
## Cause
23+
The amount billed does not correspond to the objects that are present in my Scaleway Object Storage bucket.
24+
25+
## Possible causes
26+
27+
- Your [bucket is versioned](/object-storage/how-to/use-bucket-versioning/), and multiple versions of your objects are stored in it, incurring extra cost.
28+
29+
- Some [multipart uploads](/object-storage/api-cli/multipart-uploads/) are ongoing. The storage used during the upload is billed, but the object is not visible as long as the upload is not complete.
2430

2531
## Possible solutions
2632

33+
### Bucket versioning
34+
35+
1. Check the versioning status of your bucket via the [Scaleway console](https://console.scaleway.com/object-storage/buckets), or using the [GetBucketVersioning](/object-storage/api-cli/bucket-operations/#getbucketversioning) command:
36+
```
37+
aws s3api get-bucket-versioning --bucket BucketName
38+
```
39+
- If the versioning is `disabled`, the issue is not linked to versioning.
40+
- If the versioning is `enabled` or `suspended`, you may have multiple versions of your objects.
41+
2. Use the [ListObjectVersions](/object-storage/api-cli/bucket-operations/#listobjectversions) command to list the versions of the objects in your bucket:
42+
```sh
43+
aws s3api list-object-versions --bucket BucketName
44+
```
45+
A list of all the objects versions and delete markers present in the bucket appears.
46+
3. Delete the unwanted versions and delete markers using the [DeleteObject] command with a versionId specified:
47+
```sh
48+
aws s3api delete-object --bucket BucketName --key ObjectName --version-id ObjectVersion
49+
```
50+
Refer to the [official Amazon S3 documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html) for more information on how versioning works.
51+
52+
### Multipart uploads
53+
54+
1. Check if some multipart uploads are ongoing using the [ListMultipartUpload](/object-storage/api-cli/multipart-uploads/#listing-multipart-uploads) command:
55+
```sh
56+
list-multipart-uploads --bucket BucketName
57+
```
58+
2759
## Going further
2860

2961
- Refer to the [bucket policies overview](/object-storage/api-cli/bucket-policy/) for more information on the different elements of a bucket policy.

0 commit comments

Comments
 (0)