Define the retention decision before building the delete button
The Philippine Data Privacy Act’s implementing rules address retention in Section 19. They tie retention to the purposes of processing and recognised grounds such as legal claims, legitimate business purposes and applicable law. They also address secure disposal. Those rules should inform a documented schedule; they do not establish a single retention period for every AI prompt, document or log.[1]
Kooya’s operating recommendation is to distinguish routine expiry, an approved deletion request, correction of an inaccurate record and removal of access. They may require different actions. Have the responsible privacy and legal owners determine the applicable obligations and any justified exception before an operator deletes business records.
This is an implementation guide, not a determination of legal compliance. It concentrates on making an approved retention decision work across an AI application, regardless of whether its model is hosted locally or by a provider.
Map the copies and preserve a deletion reference
Start with one representative document and follow its processing path. It may produce extracted text, chunks, embeddings, search metadata, cached answers, conversation records and debugging traces. Record which components actually store content; do not assume every implementation creates every copy or that an embedding is automatically anonymous.
Kooya recommends a stable source identifier connected to the derived records. Keep enough lineage to locate and remove those records without searching manually for the document’s wording. Assign a system owner and deletion mechanism to each storage location, including third-party features.
Use the company-document AI knowledge base guide to map the retrieval system before defining its deletion path.
- Source storage: original files, revisions and attachments.
- Retrieval storage: extracted text, chunk records, vectors and metadata.
- Application storage: chats, generated summaries, caches and exports.
- Operational storage: logs, support attachments and evaluation datasets.
- External and recovery storage: provider features, replicas and backups.
Delete from the index and stop re-ingestion
Microsoft documents that Azure Storage change detection and deletion detection are different. Its Azure AI Search guidance explains that an indexer does not automatically track source-object deletion and describes soft-delete strategies to avoid orphan search records. Separately, its document-deletion guide says application-driven push indexing requires manual document deletion. These are concrete product behaviours, not rules for every search service.[2][3]
Kooya’s recommendation: identify the parent document and all derived index records, stop ordinary retrieval access when appropriate, perform the required deletions and verify the result. Check how the connector represents a deletion and whether the indexer has processed it before permanently removing evidence needed for synchronisation.
Then run the next scheduled sync in a test environment. If the original remains in another connected folder or an ingestion job replays old work, the removed content may return. Record a controlled deletion marker where needed so the pipeline can distinguish an intentional removal from missing work to recreate. Do not put the removed document’s full content into that marker.
Check provider retention at feature level
Anthropic’s current API documentation explicitly says APIs and features have different storage needs and provides eligibility information for its data-handling arrangements. It also distinguishes deployments where Anthropic is the data processor from cloud-provider-managed deployments whose documentation applies. This means a provider name alone is not a retention specification.[4]
Kooya’s procurement checklist is to identify the exact product, model, endpoint, storage features and agreement being used. Ask what data is retained, where deletion is initiated, what exceptions apply and what evidence the customer can obtain. Recheck those answers when enabling a new feature or changing deployment routes.
Keep training use, retention and access separate in the review. A statement about whether data trains a model does not establish that no content is stored. Equally, deleting a local chat does not prove that provider-side storage has completed its own lifecycle. Communicate the confirmed scope and any outstanding provider step accurately.
Handle logs, backups and exceptions explicitly
Kooya recommends reducing unnecessary copies before automating their deletion. Use record identifiers and error categories in ordinary diagnostics when raw content is unnecessary. Review screenshots, support tickets and evaluation exports too; these can sit outside the main application’s deletion path.
For backups, document the retention schedule, access restrictions and restore procedure. If individual removal is not supported, the responsible owners need to determine an appropriate treatment and account for it in the policy. Test how approved deletions are reapplied before a restored system returns to ordinary use. Do not describe live-system removal as proof of immediate erasure from every recovery copy.
Keep a narrow exception register for records retained under an approved obligation or hold. Record the authority, scope, access restriction and next review point. An exception should be specific and reviewable, not a general instruction to keep everything indefinitely.
Close the request with evidence, not only an API response
Kooya’s proposed completion record lists the approved scope, identifiers, systems checked, deletion time or pending lifecycle, verifier and unresolved exceptions. Retain only the evidence needed to demonstrate the workflow; copying the sensitive payload into the audit record defeats the purpose.
Use a purpose-made test document with recognisable synthetic content to exercise the complete path. Check the source, derived index records, caches and application history using the relevant administrative tools. A failed search is useful but is not the sole proof of deletion: query ranking, permissions or indexing delays can also make a record invisible.
- Delete the test source and confirm the expected derived records are handled.
- Run the normal ingestion schedule and check that the data stays removed.
- Exercise a retry and confirm that it does not create conflicting requests.
- Restore a controlled backup and verify that the deletion decision is reapplied.
- Report incomplete provider steps or retained exceptions instead of marking every copy erased.

