Deletes the specified session and prohibits new requests from being routed to it. Clears the session metadata from the database, so subsequent requests with the same session ID are treated as new sessions. Releases resources and performs session cleanup. In session isolation scenarios, terminates running requests and releases the instance bound to the session. In non-session isolation scenarios, allows running requests to continue and gracefully terminates them.
Debugging
Authorization information
Request syntax
DELETE /2023-03-30/functions/{functionName}/sessions/{sessionId} HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| functionName | string | No | The function name. | my-func |
| sessionId | string | No | The ID of the session to be deleted. | test-session-id-1 |
| qualifier | string | No | The function alias or version associated with the session to be deleted. | aliasName1 |
Response parameters
Examples
Sample success responses
JSONformat
{}Error codes
For a list of error codes, visit the Service error codes.
