Arize Phoenix TS
    Preparing search index...
    • 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

      Parameters

      Returns Promise<void>

      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 ID
      await deleteSession({
      client,
      sessionId: "my-session-id"
      });

      // Delete by Phoenix Global ID
      await deleteSession({
      client,
      sessionId: "UHJvamVjdFNlc3Npb246MTIz"
      });