Skip to content

Delete several nodes permanently

POST
/drives/{drive}/nodes/delete/{permanent}
curl --request POST \
--url https://work.optidata.cloud/api/drives/1/nodes/delete/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "node_ids": [ 1 ] }'

Erases every listed node, bypassing the trash. This cannot be undone. Same authorisation and same flag semantics as DELETE /drives/{drive}/nodes/{node}/{permanent} — send 1.

drive
required
integer format: int64

Numeric id of the drive. Read it from GET /drives/config.json.

permanent
required
string
Allowed values: 0 1

Send 1 to erase the nodes permanently.

Example
1
Media typeapplication/json

A list of node ids to operate on.

object
node_ids
required
Array<integer>
Examplegenerated
{
"node_ids": [
1
]
}

Result of the batch deletion.

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

The caller lacks the permission level the operation requires.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Exampledenied
{
"message": "This action is unauthorized."
}

The request body or query string failed validation.

Media typeapplication/json
object
message
required

The first validation message.

string
errors
required

Validation messages keyed by field name.

object
key
additional properties
Array<string>
Examples
Exampleinvalid
{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}