All Products
Search
Document Center

Function Compute:DeleteSession

最終更新日:Dec 19, 2025

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

DELETE /2023-03-30/functions/{functionName}/sessions/{sessionId} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
functionNamestringNo

The function name.

my-func
sessionIdstringNo

The ID of the session to be deleted.

test-session-id-1
qualifierstringNo

The function alias or version associated with the session to be deleted.

aliasName1

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.