Skip to content
Software development
ASD ISMISM-2123

ASD ISM 2123 Delete AI chat session prompts and outputs

What it says

All prompts and outputs associated with chat sessions are securely deleted when chat sessions are removed from AI applications.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

When a chat session is removed from an AI application you develop, securely delete every prompt and output linked to it, so none can be recovered from any store or backup.

When a chat session is removed from an AI application the organisation develops, all prompts and outputs associated with it must be securely deleted. Securely deleted means the data cannot be recovered, so hiding the chat or flagging it as deleted is not enough. All covers every copy, not only the main conversation store: caches, search indexes, files attached to prompts, backups and any copy a model provider keeps. Any removal triggers it, whether by a user, an administrator or an automatic expiry.

Why it matters

Prompts and outputs often hold sensitive data that users paste in or the model draws out. If removing a chat only hides it, that data piles up and stays recoverable from the store or backups after users think it is gone. Secure deletion ends that.

How to implement

  1. Map every place a chat's prompts and outputs are stored.

    Trace a test conversation through the application: conversation database, caches, search indexes, file stores for attachments, debug and analytics logs, backups, and any model provider or other service that keeps a copy.

  2. Keep conversation text out of logs that do not need it.

    Debug, performance and analytics logs can record that a prompt was sent without its content. Where an agentic AI application must centrally log its outputs (ISM-2159), keep those event logs as ISM-1988 requires, protect them (ISM-2052) and record them as a shortfall against this control until securely deleted.

  3. Make removal delete the data, not hide it.

    Replace soft-delete flags with a deletion job that removes the session's prompts and outputs from every mapped store whenever a user, an administrator or an expiry rule removes the session, and record that each deletion completed.

  4. Make deleted data unrecoverable, including from backups.

    Database recovery features and backups can keep deleted rows, so encrypt each session's prompts and outputs under its own key, held outside the backups, and destroy the key on removal. Copies in backups, replicas and recovery points then can no longer be read.

  5. Close copies held by model providers and other services.

    Use a zero-retention option or contract terms requiring deletion of prompts and outputs when sessions are removed. Where the application is built on a bought AI platform, set the platform's retention and deletion options in its admin console. Treat any copy you cannot delete as a gap until closed.

Keep it running

Update the data map and deletion job whenever a new store, cache, feature or provider handles chat data, and rerun the removal test after changes to storage or backups. Alert on failed deletion jobs, because they leave data behind without anyone noticing.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    Test chat sessions in a test environment that mirrors production, one removed through each route the application offers (user action, administrator removal, automatic expiry), then searched for in every store on the data map.

    Look at

    Whether any prompt or output from the sessions can still be found or restored from the database, caches, search indexes, file stores or recovery points.

    Good evidence

    No prompt or output from the removed sessions can be found in any store or restored from a recovery point, backup or administrator tool; agentic AI outputs kept in event logs under ISM-2159 are a known shortfall, not a pass.

  2. Check 2 of 3What an auditor asks for

    Ask for

    The data map, compared with the application's architecture diagrams and the services it sends chat data to.

    Look at

    Whether every store and service that holds prompts or outputs is on the map with a deletion method.

    Good evidence

    Every store and service that receives prompts or outputs, including model providers, is on the map, and each has a deletion method that runs when a session is removed; an event log of agentic AI outputs kept under ISM-2159 and ISM-1988 is a known shortfall, not a pass.

  3. Check 3 of 3What an auditor asks for

    Ask for

    The provider retention settings or contract terms, and the deletion job's records for a recent period.

    Look at

    Whether providers keep copies after removal, and whether any deletion jobs failed.

    Good evidence

    Each provider either keeps no copy or deletes it when the session is removed, and every failed deletion job was rerun until it completed.

Mappings

Closest match in ISO/IEC 27001: A.8.10, Information deletion, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.8.10Information deletionPartially meets

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.