Skip to main content

Delete a session

Delete a session permanently. It cannot be undone. Also removes any emotional data associated to the session.

Sessions in the state active cannot be deleted. For deleting an active session you have to stop it first.

URL

DELETE /v1/sessions/:sessionId

Request URL Parameters

ParameterDescription
:sessionIdID of the session to remove.

Response codes

CodeMeaningDescription
204No contentThe request has succeeded and there is no content to send for this request.
400Bad RequestThe session is active or processing.
404Not FoundThe requested resource does not exist or you do not have permissions to perform this action on it.

Request example

curl -X DELETE 'https://api.emogg.com/v1/sessions/:sessionId' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Example response

None