Skip to content
中文

Delete one of your bell messages

Code Mode: praxis.organization.notifications.messages.delete

HTTP: DELETE /organization/v1/notifications/messages/{name}

Delete one of the calling person’s own bell messages for good. A message that is not theirs — another person’s, another organization’s — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.

Signature

praxis.organization.notifications.messages.delete(args:{path:{/** e.g. "subscribers/usr_8a21c4/messages/msg_3f9a1c7e" */ name:string}}):Promise<{/** Always true: the message was deleted. */ deleted:boolean}>;

Parameters

NameInTypeRequiredDescription
namepathstringyesThe message’s `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.

Responses

StatusContent typesDescription
200application/jsonThe message is deleted.
400`name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
401Missing or invalid credential (RFC 9457 problem).
403`PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
404No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
502The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.