Welcome
Identity Verification Product Guide
Identity Verification SDK
Mobile SDK
No Code (Portal)
Face Auth
Face Search
DBS/RTW & Yoti Global Identity
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
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:
Tracked DevicesGot a question? Contact us here.
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message