anthropic.deleteSession deletes a Claude session and retained history.
Example
automations/anthropic-delete-session.automation.ts
Inputs
RequiressessionId. Inputs use public camelCase names and accept signals.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Deletes a Claude session and retained history.
anthropic.deleteSession deletes a Claude session and retained history.
import { automation, onInvocation, withPrerequisites } from "automate.ax"
import { anthropic } from "automate.ax/anthropic"
export default automation("Delete session", () => {
withPrerequisites(onInvocation(), () => {
anthropic.deleteSession({ sessionId: "session-id" })
})
})
sessionId. Inputs use public camelCase names and accept signals.