Session Lifecycle
Close and release a device session
Closes an active device session and releases the device back to the pool. The session transitions to CLOSING state and then CLOSED. For private devices, set rebootDevice to true to reboot the device after release. Once closed, the session cannot be reused — create a new session to continue testing.
delete/sessions/{sessionId}
Request
- Base URLhttps://api.us-west-1.saucelabs.com/rdc/v2
- AuthHTTP basic
- TypeScripthttps://skmtc.dev/saucelabs/apis/real-device-access-api-reference/docs/sessions/:sessionId/delete.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
sessionIdstring required
The id of the device session
Query parameters
rebootDeviceboolean
Perform a device reboot after session release. Only applicable for private devices.
Response
Session is closing
Example response
{
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"state": "CREATING"
}Changes
No recorded changes to this operation across all 1 revision of this API.