Delete a session
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
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.
// 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
})
// Deleting the session
docScanClient.deleteSession(sessionId);
// Deleting the media
docScanClient.deleteMediaContent(sessionId, mediaId);
<?php
// Deleting the session
$docScanClient->deleteSession($sessionId);
// Deleting the media
$docScanClient->deleteMediaContent($sessionId, $mediaId);
# Deleting the session
doc_scan_client->delete_session(session_id);
# Deleting the media
doc_scan_client->delete_media_content(session_id, media_id);
// Deleting the session
docScanClient.DeleteSession(sessionId);
// Deleting the media
docScanClient.DeleteMediaContent(sessionId, mediaId);
Last updated on
Was this page helpful?
Next to read:
View sessions in the portalGot a question? Contact us here.
Welcome
Identity Verification Product Guide
Mobile SDK
No Code (Portal)
Face Auth
Face Search
DBS/RTW & Yoti Global Identity