0

Cancel Object Storage

by
Published Oct 17, 2025

Cancel Object Storage on an Account. > 🚧 > > This removes all buckets and their contents from your Account. This data is irretrievable once removed. > --- - __CLI__. ``` linode-cli object-storage cancel ``` [Learn more...](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli) - __OAuth scopes__. ``` object_storage:read_write ``` [Learn more...](https://techdocs.akamai.com/linode-api/reference/get-started#oauth)

Script linode Verified

The script

Submitted by hugo697 Bun
Verified 235 days ago
1
//native
2
type Linode = {
3
  token: string;
4
};
5
/**
6
 * Cancel Object Storage
7
 * Cancel Object Storage on an Account.
8

9
> 🚧
10
>
11
> This removes all buckets and their contents from your Account. This data is irretrievable once removed.
12

13

14
>
15

16
---
17

18

19
- __CLI__.
20

21
    ```
22
    linode-cli object-storage cancel
23
    ```
24

25
    [Learn more...](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)
26

27
- __OAuth scopes__.
28

29
    ```
30
    object_storage:read_write
31
    ```
32

33
    [Learn more...](https://techdocs.akamai.com/linode-api/reference/get-started#oauth)
34
 */
35
export async function main(auth: Linode, apiVersion: "v4" | "v4beta") {
36
  const url = new URL(
37
    `https://api.linode.com/${apiVersion}/object-storage/cancel`,
38
  );
39

40
  const response = await fetch(url, {
41
    method: "POST",
42
    headers: {
43
      Authorization: "Bearer " + auth.token,
44
    },
45
    body: undefined,
46
  });
47
  if (!response.ok) {
48
    const text = await response.text();
49
    throw new Error(`${response.status} ${text}`);
50
  }
51
  return await response.json();
52
}
53