Experimental
Delete a single session by ID.
This will permanently remove the session and all associated traces, spans, and annotations via cascade delete.
this function is experimental and may change in the future
The parameters to delete a session
Promise that resolves when the session is successfully deleted
Error if the session is not found or deletion fails
Phoenix server >= 13.13.0
// Delete by user-provided session IDawait deleteSession({ client, sessionId: "my-session-id"});// Delete by Phoenix Global IDawait deleteSession({ client, sessionId: "UHJvamVjdFNlc3Npb246MTIz"}); Copy
// Delete by user-provided session IDawait deleteSession({ client, sessionId: "my-session-id"});// Delete by Phoenix Global IDawait deleteSession({ client, sessionId: "UHJvamVjdFNlc3Npb246MTIz"});
Delete a single session by ID.
This will permanently remove the session and all associated traces, spans, and annotations via cascade delete.
this function is experimental and may change in the future