---
title: 9. How do retention policies work for different WCF service types? | WCF Diagnostics Tracing | Nodinite
description: Troubleshooting guide for WCF Diagnostics Tracing with Nodinite. 9. How do retention policies work for different WCF service types?
---

# 9. How do retention policies work for different WCF service types?

*Part of the [WCF Diagnostics Tracing][] troubleshooting and FAQ guide.*

:Nodinite: applies retention policies per [Message Type][] rather than globally, giving you granular control over how long WCF trace events are kept for each service category. This approach maximizes storage optimization while meeting regulatory compliance requirements.

## Retention Policy by Service Category

Configure retention in [Message Type][] settings for each category:

* **Financial transactions** (InvoiceProcessing, PaymentRequest, TaxCalculation) — 7 years retention (regulatory compliance)
* **Order processing** (PurchaseOrderSubmission, OrderConfirmation) — 3 years retention (audit trail)
* **Debug traces** (HeartbeatCheck, HealthMonitor) — 30 days retention (troubleshooting only)

SQL Server automatically purges events older than each Message Type retention policy via a scheduled nightly data purge job. No manual cleanup is required.

## Storage Optimization Results

By combining long retention for financial transactions with short retention for debug traces, you achieve significant storage optimization. A typical deployment retains financial transactions for 7 years alongside debug traces for 30 days, delivering up to 95% disk space savings compared to applying a blanket 7-year policy to all events.

---

## :fa-hand-point-right: Next Steps

* [WCF Diagnostics Tracing][] - Overview of all features and getting started guides  
* [Troubleshooting Overview][] - See all troubleshooting topics and FAQs  

## :fa-link-horizontal: Related Topics

* :fa-list: [Troubleshooting Overview][] - See all troubleshooting topics and FAQs  
* :fa-bolt: [WCF Diagnostics Tracing][] - Back to feature overview  
* :fa-tags: [Message Type][] - Configure per-Message-Type retention policies  

[Message Type]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Troubleshooting Overview]:{ndr}/Logging%20and%20Monitoring/WCF%20Diagnostics%20Tracing/Troubleshooting/Overview.md
[WCF Diagnostics Tracing]:{ndr}/Logging%20and%20Monitoring/WCF%20Diagnostics%20Tracing/Overview.md