---
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.*

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

---

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

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

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-list" aria-hidden="true"></i> [Troubleshooting Overview][] - See all troubleshooting topics and FAQs  
* <i class="fal fa-bolt" aria-hidden="true"></i> [WCF Diagnostics Tracing][] - Back to feature overview  
* <i class="fal fa-tags" aria-hidden="true"></i> [Message Type][] - Configure per-Message-Type retention policies  

[Message Type]:https://docs.nodinite.com/repository-model/message-types/overview/
[Troubleshooting Overview]:https://docs.nodinite.com/logging-and-monitoring/wcf-diagnostics-tracing/troubleshooting/overview/
[WCF Diagnostics Tracing]:https://docs.nodinite.com/logging-and-monitoring/wcf-diagnostics-tracing/overview/