Issue Description
When trying to delete a clusternode I get an error message.
$ docker run --rm -e STALWART_URL=:8080 -e STALWART_TOKEN=API_ stalwartlabs/cli query ClusterNode
Id Node ID Hostname Last Renewal Status
a 0 stalwart 2026-07-17T13:04:17Z Active
b 1 stalwart-node-2 2026-07-17T06:36:11Z Stale
c 2 mx1. 2026-07-17T13:18:33Z Active
d 3 “mx1.” 2026-07-17T06:43:21Z Stale
e 4 “mx2.” 2026-07-17T06:44:08Z Stale
f 5 mx2. 2026-07-17T12:48:12Z Active
$ docker run --rm -e STALWART_URL=:8080 -e STALWART_TOKEN=API_ stalwartlabs/cli delete ClusterNode --ids 1,3,4 --debug
[debug] → GET http://:8080/api/schema
[debug] ← GET http://:8080/api/schema status=302 Found content-type=(none) content-length=0 content-encoding=identity
[debug] → GET http://:8080/api/schema/
[debug] ← GET http://:8080/api/schema/ status=200 OK content-type=application/json content-length=148000 content-encoding=gzip
[debug] → GET http://:8080/jmap/session
[debug] ← GET http://:8080/jmap/session status=200 OK content-type=application/json; charset=utf-8 content-length=1739 content-encoding=identity
[debug] → POST http://:8080/jmap
[debug] ← POST http://:8080/jmap status=200 OK content-type=application/json; charset=utf-8 content-length=263 content-encoding=identity
1 failed: error: forbidden
Telemetry objects cannot be deleted
3 failed: error: forbidden
Telemetry objects cannot be deleted
4 failed: no response from server
0 deleted, 3 failed
error: one or more deletions failed
Expected Behavior
The clusternode should be deleted.
Actual Behavior
The request is denied with the message “1 failed: error: forbidden
Telemetry objects cannot be deleted”.
Reproduction Steps
$ docker run --rm -e STALWART_URL=:8080 -e STALWART_TOKEN=API_ Package cli · GitHub query ClusterNode
Id Node ID Hostname Last Renewal Status
a 0 stalwart 2026-07-17T13:04:17Z Active
b 1 stalwart-node-2 2026-07-17T06:36:11Z Stale
c 2 mx1. 2026-07-17T13:18:33Z Active
d 3 “mx1.” 2026-07-17T06:43:21Z Stale
e 4 “mx2.” 2026-07-17T06:44:08Z Stale
f 5 mx2. 2026-07-17T12:48:12Z Active
$ docker run --rm -e STALWART_URL=:8080 -e STALWART_TOKEN=API_ Package cli · GitHub delete ClusterNode --ids 1,3,4 --debug
[debug] → GET http://:8080/api/schema
[debug] ← GET http://:8080/api/schema status=302 Found content-type=(none) content-length=0 content-encoding=identity
[debug] → GET http://:8080/api/schema/
[debug] ← GET http://:8080/api/schema/ status=200 OK content-type=application/json content-length=148000 content-encoding=gzip
[debug] → GET http://:8080/jmap/session
[debug] ← GET http://:8080/jmap/session status=200 OK content-type=application/json; charset=utf-8 content-length=1739 content-encoding=identity
[debug] → POST http://:8080/jmap
[debug] ← POST http://:8080/jmap status=200 OK content-type=application/json; charset=utf-8 content-length=263 content-encoding=identity
1 failed: error: forbidden
Telemetry objects cannot be deleted
3 failed: error: forbidden
Telemetry objects cannot be deleted
4 failed: no response from server
0 deleted, 3 failed
error: one or more deletions failed
Relevant Log Output
$ docker run --rm -e STALWART_URL=<snip>:8080 -e STALWART_TOKEN=API_<snip> ghcr.io/stalwartlabs/cli delete ClusterNode --ids 1,3,4 --debug
[debug] -> GET http://<snip>:8080/api/schema
[debug] <- GET http://<snip>:8080/api/schema status=302 Found content-type=(none) content-length=0 content-encoding=identity
[debug] -> GET http://<snip>:8080/api/schema/<snip>
[debug] <- GET http://<snip>:8080/api/schema/<snip> status=200 OK content-type=application/json content-length=148000 content-encoding=gzip
[debug] -> GET http://<snip>:8080/jmap/session
[debug] <- GET http://<snip>:8080/jmap/session status=200 OK content-type=application/json; charset=utf-8 content-length=1739 content-encoding=identity
[debug] -> POST http://<snip>:8080/jmap
[debug] <- POST http://<snip>:8080/jmap status=200 OK content-type=application/json; charset=utf-8 content-length=263 content-encoding=identity
1 failed: error: forbidden
Telemetry objects cannot be deleted
3 failed: error: forbidden
Telemetry objects cannot be deleted
4 failed: no response from server
0 deleted, 3 failed
error: one or more deletions failed
Stalwart Version
v0.16.x
Installation Method
Docker
Database Backend
PostgreSQL
Blob Storage
S3-compatible
Search Engine
Internal
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on