Delete Session
AI-generatedSummary
Deletes the configured WhatsApp session by sending a DELETE request to the external server’s /sessions/delete/{sessionId} endpoint. The server URL, session ID, and optional API key come from the required WhatsApp Server API credential.
Inputs
- Use Legacy Mode — Declared as an optional boolean for external mode, but the delete request does not use it.
Output shape
A list of items, one per input item, each containing the external server response in json.
If the credential mode is embedded, the operation returns a failure message because embedded mode is unavailable. Request errors are thrown unless Continue On Fail is enabled, in which case each affected item contains an
errorfield.
Examples
Example 1: Delete the session configured in the WhatsApp Server API credential.
Use the required WhatsApp Server API credential; optionally supply an API key for bearer authorization.