Actions25
- Database Actions
- Memory Actions
- Query Actions
- Query Builder Actions
- Table Actions
- Table Management Actions
Memory → Clear Session
AI-generatedSummary
Clear session memory
Inputs
- databaseId (required) — The unique identifier of the Cloudflare D1 database
- sessionId (required) — The session ID whose messages will be permanently deleted
Output shape
object indicating success (no data)
The operation permanently deletes all messages for the session and returns a success indicator; cannot be undone
Examples
Example 1: Delete all messages for a specific session
databaseId: 'db_abc', sessionId: 'fe4621679-4f44f-ca991e52d2ea46508'
Example 2: Clear session after confirming warning
databaseId: 'prod_db', sessionId: 'session_123', clearSessionWarning: true