Virtual USB CLI: Delete Session
Close a Virtual USB session that you launched using the startSession
command.
Usage
$ <main class> [OPTIONS] deleteSession [OPTIONS]
Options Details
--sessionId
| REQUIRED | STRING |
The unique identifier of the session to delete. You can retrieve the session ID of an active session using thesessions
command.--username
| REQUIRED | STRING |
A valid Sauce Labs user account. You can find your username on the Sauce Labs User Settings page. This option supports environment variable values.--accessKey
| REQUIRED | STRING |
The authentication access key associated with your Sauce Labs user account. You can find your access key on the Sauce Labs User Settings page. This option supports environment variable values.--serverHost
| OPTIONAL | URL ADDRESS |
A specific Virtual USB server host address. The default value, if not specified, ishttp://127.0.0.1
.--serverPort
| OPTIONAL | STRING |
A specific Virtual USB server port. The default value, if not specified, is33657
.Examples
Basic Example with Required Flags
Delete Request
java -jar virtual-usb-client.jar deleteSession --sessionId d03a1b81-158d-4bb4-bcc9-074e43dd8465 --username $SAUCE_USERNAME --accessKey $SAUCE_ACCESS_KEY
Sample Response
07:45:46.375 [main] INFO com.saucelabs.vusb.client.Runner - Runner Version 2.0.0
Disconnected
Deleted session d03a1b81-158d-4bb4-bcc9-074e43dd8465
Full Example with Optional Flags
java -jar virtual-usb-client.jar deleteSession \
--sessionId d03a1b81-158d-4bb4-bcc9-074e43dd8465 \
--username $SAUCE_USERNAME \
--accessKey $SAUCE_ACCESS_KEY
--serverHost http://127.0.0.1 \
--serverPort 8080 \