Skip to main content

Delete Node

Deletes a node. Only an empty node can be deleted: a node that still has child nodes, supervisors or tokens is refused, each with its own code.

Required permission: node:delete

Request​

DELETE /v2/admin/nodes/{node_id}

Parameters​

NameTypeInDescription
node_idstringpathRequired. The node's id

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request DELETE \
--url '{{baseUrl}}/v2/admin/nodes/6a4bef2b1e781b11c22e9707' \
--header 'Authorization: Bearer <access_token>'

Response​

200 OK with an empty body.

Errors​

StatusCodeDescription
40010016node_id is not a valid id
40010001Node not found (node domain 2)
40010008The node has child nodes (node domain 2)
40010009The node has supervisors (node domain 2)
40010010The node has tokens (node domain 2)
40310005The node is outside your part of the hierarchy (node domain 2)

See Errors for the error format and common codes.