Delete a node
DELETE https://api.rolyx.app/v1/nodes/{id}
Deletes a node and everything under it, as the app's delete does; devices drop them on their next sync. Its completions stay in history. The top of a shared item, or a node holding one, can't be deleted here: stop sharing it in the app first (400).
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Node id. ≤ 64 chars · matches /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|root:[a-z]{1,16}|year:\d{4}|month:\d{4}-\d{2}|day:\d{4}-\d{2}-\d{2})$/ |
Example
curl -X DELETE 'https://api.rolyx.app/v1/nodes/<id>' \
-H "Authorization: Bearer $ROLYX_TOKEN" Response
200, JSON.
| Name | Type | Description |
|---|---|---|
deleted | integer | How many nodes went: the node and its descendants. ≥ 1 |
{
"deleted": 4
} Errors
Always { "error": { "code", "message" } }; see Errors.
| Status | Code | When |
|---|---|---|
| 400 | bad_request | Bad input: unknown field, wrong type, too long. |
| 401 | unauthorized | Missing, malformed, expired or revoked token. |
| 403 | insufficient_scope | The token lacks the scope this endpoint needs. |
| 404 | not_found | No such resource, or the token cannot see it. |
| 429 | rate_limited | Rate limited; see retry-after. |
| 500 | internal | Internal error. |
| 502 | upstream_error | The database failed. |
| 503 | unavailable | The API is not set up on this server. |
| 507 | storage_full | Storage limit reached. |