HomeAge Verification HeadlessAI Services for TerminalsAge Estimation VerifySupportTrust APIIdentity Verification LivenessDigital IDIdentity verificationDigital ID MigrationDBS RTWDigital IDDBS/RTW portaleSignaturesAge verificationAge estimationIn-Branch VerificationAge Estimation v2idv-portal-errorsIdentity ProfilesVerifiable Credentialssandbox-betaIdentity Verification APIAI Services APITrust APIProof of Age (PoA) API
Identity verification
v9.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:
Tracked DevicesGot a question? Contact us here.
Video Learning Centre
SDK
Mobile
Sandbox
Usability
Legal & privacy
Stay updated