Delete a session
It is possible to delete a session or image (media) before the defined retention period (ttl) is over. This can only be done once the session is completed.
Deleting the session will also delete all media from that session. Deleting a media object will delete only that specific object, leaving the rest of the session untouched.
x
// Deleting the session
idvClient.deleteSession(sessionId).then(() => {
// Session has been deleted
}).catch(error => {
// Error occured
})
// Deleting the media
idvClient.deleteMediaContent(sessionId, mediaId).then(() => {
// Media has been deleted
}).catch(error => {
// Error occured
})
Was this page helpful?