Skip to content
On this page

Cloud Storage Delete

🔑 Need JWT Authorization

Description

Delete cloud storage file or directory

WARNING

Only files or directories in the same level of directory are supported to be deleted.

If you delete a file or directory from a different directory, it will fail.

Method And Path

js
POST /v2/cloud-storage/delete

Request

ts
{
    "authorization": string;
    "x-request-id": string;
    "x-session-id": string;
}

Body

ts
{
    "uuids": Array<string>;
}

uuids

File or directory uuids

  • minItems: 1
  • maxItems: 50
  • format: uuid-v4

e.g.

ts
[
    "71490c00-13be-11ed-972d-9fc559c659f2",
    "784f4b90-13be-11ed-ac0f-4b9cb2f52f57"
]

Response

Success

HTTP Status Code: 200

ts
{
    status: Status.Success,
    data: {}
}

Extends Type: Status

Failed

HTTP Status Code: 200

ts
{
    status: Status.Failed,
    code: ErrorCode
}

Extends Type: Status, ErrorCode

Released under the MIT License.