Skip to content

Variable: MastraDeleteThreadResponseSchema

const MastraDeleteThreadResponseSchema: ZodObject<{ agentId: ZodString; deleted: ZodBoolean; ok: ZodLiteral<true>; threadId: ZodString; }, $strip>

JSON payload returned by DELETE ${basePath}/threads (thread id supplied via the thread-selection header / threadId query). Wipes the named thread and every message on it.

Fields:

  • ok: literal true on success.
  • agentId: agent whose thread was deleted.
  • threadId: thread id that was removed.
  • deleted: true when a thread row existed and was removed, false when it was already gone (call is idempotent).