Home404 Page not foundin-branch-verification-legacyAge Verification HeadlessAI Services for TerminalsAge Estimation VerifyStay updatedSupportTrust APIIdentity Verification LivenessDigital ID v2Digital ID MigrationIdentity verificationDBS/RTW portalDigital IDDBS RTWeSignaturesAge verificationAge estimationHealthIn Branch VerificationYoti Identity Verification Public APITrust API
Identity verification
v8.0
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.
// 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:
Quick startGot a question? Contact us here.
Video Learning Centre
SDK
Mobile
Sandbox
Usability
Legal & privacy
Stay updated