floatingpaper
floatingpaper7h ago

Delete State response empty

I'm trying to use the Delete State endpoint (https://docs.voiceflow.com/reference/deletestate-1) but I'm getting this response. I'm not sure if it's supposed to be this way.
No description
1 Reply
Tico | Voiceflow Assistant
👋 Yup — that’s exactly what the Delete State endpoint is designed to do. • Request
DELETE https://general-runtime.voiceflow.com/state/user/{userID}
Headers:
Authorization: VF.DM.<your-project-API-key>
versionID: development | production (optional – defaults to development)
DELETE https://general-runtime.voiceflow.com/state/user/{userID}
Headers:
Authorization: VF.DM.<your-project-API-key>
versionID: development | production (optional – defaults to development)
• Response
HTTP/1.1 200 OK ← no body is returned
HTTP/1.1 200 OK ← no body is returned
The server simply clears all runtime/session data for the supplied userID and confirms with a 200 status. Because everything is deleted there’s nothing left to send back, so the body is intentionally empty. How to confirm it worked: 1. Call GET /state/user/{userID} – you’ll get { "stack": [], "storage": {}, "variables": {} } (or null). 2. Or send the next /interact request; the conversation will start from the project’s beginning as if it’s a new user. Docs: https://docs.voiceflow.com/reference/deletestate-1 Let me know if anything’s unclear!

Did you find this page helpful?