Arize Phoenix TS
    Preparing search index...
    • Experimental

      Delete multiple sessions by their identifiers.

      All identifiers must be the same type: either all GlobalIDs or all user-provided session_id strings. Non-existent IDs are silently skipped. All associated traces, spans, and annotations are cascade deleted.

      this function is experimental and may change in the future

      Parameters

      Returns Promise<void>

      Promise that resolves when the sessions are successfully deleted

      Error if identifiers are mixed types or deletion fails

      Phoenix server >= 13.13.0

      // Delete by user-provided session IDs
      await deleteSessions({
      client,
      sessionIds: ["session-1", "session-2", "session-3"]
      });

      // Delete by Phoenix Global IDs
      await deleteSessions({
      client,
      sessionIds: ["UHJvamVjdFNlc3Npb246MQ==", "UHJvamVjdFNlc3Npb246Mg=="]
      });