An Azure service that enables users to identify content that is potentially offensive, risky, or otherwise undesirable. Previously known as Azure Content Moderator.
Hello Stephanie Frenel,
Thanks for raising this question in Azure Q&A forum.
Azure AI Foundry does retain conversation data by design, but you have full control over where it is stored, how long it is retained, and whether you want to delete it. Here is the complete picture of data retention in Foundry projects.
How Foundry Stores Conversation Data
Default Behavior — Foundry automatically stores:
- Threads (conversation sessions)
Messages (user inputs and agent responses)
Runs (agent execution traces, tool calls)
Memory (if using agent memory features)
Storage Location Options:
Microsoft-managed Storage Account (default) — isolated by project, same geography as your Foundry resource
Bring Your Own Storage (BYOS) — your own Azure Storage Account
Azure Cosmos DB — for advanced scenarios with custom indexing/querying
Data Retention:
Customer-controlled — data is retained until you explicitly delete it
Double-encrypted at rest (Microsoft-managed keys + optional customer-managed keys)
No automatic deletion unless configured
How to Delete Retained Data
1. Delete Individual Threads/Conversations
python
from azure.ai.projects import AIProjectClient
client = AIProjectClient(endpoint, credential)
client.delete_thread(thread_id="your-thread-id")
2. Delete All Data for a Project (Nuclear Option)
text
Azure Portal → AI Foundry Project → Overview → Delete → Permanently delete all data
Warning: This deletes everything — threads, messages, runs, memory, everything.
3. Use BYOS for Granular Control Configure Bring Your Own Storage to use your own Azure Storage Account:
bash
# Bicep template configuration
Then delete containers/files directly via Azure Storage Explorer or SDK.
4. Memory-Specific Deletion (Agent Memory)
python
# Delete specific memory entries
Data Privacy Guarantees
Microsoft does NOT:
Use your data to train foundation models
Share your data with third parties
Store data outside your specified geography
Microsoft DOES:
Perform abuse monitoring (optional, can be disabled)
Store data encrypted at rest within your Foundry project boundary
Recommended Data Management Strategy
For Compliance/GDPR:
text
1. Use BYOS → Azure Storage Account (your control)
2. Configure lifecycle policies → Auto-delete after X days
3. Enable soft delete → 7-30 day recovery window
4. Use Azure Policy → Enforce data residency
For Development:
text
1. Default Microsoft-managed storage (simplest)
2. Delete threads after testing: `client.delete_thread(thread_id)`
3. Use short TTLs on memory stores
Complete Data Deletion Checklist:
text
☐ Delete all threads: client.list_threads() → client.delete_thread()
☐ Delete memory stores: client.list_memory_stores() → client.delete_memory_store()
☐ Delete project data: Portal → Delete project
☐ Verify BYOS containers emptied (if used)
☐ Confirm no data in Application Insights (if enabled)
If it helps kindly accept the answer.
Best Regards,
Jerald Felix