Skip to main content
Delete an object from the session storage. A thread envelope takes its items with it, a graph envelope its elements and a file object its bytes.

POST /revisions/:id/data/command (Command: delete_session_object)

The session must be open: once it is closing, closed or being deleted, the command is refused.

Request Body

Response

Returns {"status": "success"}, with no body beyond the status. A successful delete raises an object.deleted session event with the object’s alias and type in its object block. An alias that holds nothing is not an error: the command still succeeds and the event carries a type of null. The alias is not checked against the alias grammar, so a malformed alias behaves the same way and never returns invalid_session_object_alias. The object’s own type decides what goes with the envelope:
  • A thread object’s items are deleted first, then the envelope.
  • A graph object’s elements are deleted first, then the envelope. See the graph session object.
  • A file object’s envelope is deleted, then the stored bytes.

Errors

Example