Delete a Session
delete
/sessions/{sessionName}
Close and delete the session with name
sessionName. All producers, consumers, and queue browsers associated with the session are implicitly closed and deleted.
Request
Path Parameters
-
sessionName: string
The name of the session.
Response
204 Response
Session closed and deleted.
404 Response
Error Codes
sessionNotFound
:The requested session does not exist.
500 Response
Error Codes
operationFailed
:A low-level exception occurred in attempting to delete the session.
Examples
cURL Command
cookie=/tmp/messaging-cookie curl -s -u $USER:$PASS -c $cookie -b $cookie \ -H "X-OC-ID-TOKEN-STATUS: disabled" \ -X DELETE "https://messaging.us2.oraclecloud.com/myService-myTenant/api/v1/sessions/myFirstSession"
There is no request body to submit with the HTTP request and there is no response body.
Back to Top