A copy of your history in Microsoft Fabric frees 0 GB of D365 capacity until the rows are deleted in D365. Most of the space you can recover in a D365 Finance and Supply Chain database is technical history that standard cleanup routines delete, and the rest needs a copy, a decision or both.

Your D365 allowance only recovers when rows leave the D365 database. That one fact explains most of the confusion we see about archiving, and it shapes every decision on this page.

Database capacity series. Part 1, how license cuts shrink the allowance; Part 2, the LCS to PPAC capacity check; Part 3, where the space goes in four databases; Part 4, what to delete, copy, archive or keep; Part 5, a 3PL tenant on its way from 900 GB to 350 GB. The Part 5 tenant runs the 3PL and Freight Reconciliation solutions.

In plain words: a D365 database holds two kinds of data. Business records, like invoices and ledger entries, which you may have to keep for years. And technical history, like batch job logs and import staging, which the system writes as it works and nobody reads after a few weeks. Shrinking a database starts with the second kind.

Part 4 in about three and a half minutes: the four answers for each type of data, and the trap that can erase your copy. Watch it on its own page, with chapters →

The decision, data type by data type

Table titled Delete, Copy to Fabric First, Archive, or Keep, a starting point, not a retention policy. Batch history, batch jobs, notifications, session logs: delete with standard cleanup routines, 30 days is a common convention. Data management staging and job history, import staging: delete, about 90 days, keep rows you may need to replay. Email and document history: copy first, a sent invoice attachment may be the only copy. Database log: copy first, narrow what's logged, audit signs off on the period. Cost calculations, pending prices, update histories: delete, keep what's behind active costs and open documents. Custom archives and custom operational history: copy first, reconcile the copy, then purge in D365. Closed years of sales orders and invoices: archive with Microsoft's archive feature where it covers the data. Posted ledger, subledger, inventory, settlements: keep, no safe supported purge for most posted financial data. Master data, configuration, security, open items: keep, always.
Your legal, tax and audit requirements override every line of this table.

Start with the standard cleanup routines

Microsoft ships cleanup routines for most technical history: batch job history, batch jobs, notifications, data management staging and job history, email history and more. Each one runs as a batch job. Run it once and you get space back; give it a recurrence and you keep it.

Batch job list in D365 Finance and Operations showing five cleanup jobs created and run by the same user: Cleanup Cloud and Edge history data, waiting, scheduled for 11/6/2026 6:21 AM; Clean up log, waiting, 11/5/2026 6:20 AM; Notification clean-up, executing; Batch job history clean-up, executing; Batch job clean-up, executing.
Cleanup routines set up as batch jobs, in the Contoso demo data. This list doesn't show recurrence, so open each job's Recurrence to confirm it repeats.

Then check what they'd find. In the table view of one environment of the Part 5 tenant, standard tables sit right under the custom ones: purchase order line import staging at about 13.6 GB, outgoing email history at about 10.2 GB, batch history at about 5.5 GB, the encryption log at about 3.5 GB.

Power Platform admin center table view for one finance and operations environment of the Part 5 tenant, with the environment name and the custom table names hidden. A side panel titled Finance and operations database usage offers View as chart and Export to CSV and lists tables by consumption. Eight custom add-on tables lead, the largest at 90,383.2 MB. Standard tables follow: PURCHPURCHASEORDERLINEV2STAGING at 13,934.41 MB, SYSOUTGOINGEMAILDATA at 10,437.2 MB, BATCHHISTORY at 5,592.312 MB and SYSENCRYPTIONLOG at 3,565.906 MB.
Staging and batch history are no-regret cleanup. Email history isn't until you know the attachments are kept elsewhere.

One email setting deserves its own line. We've seen a sent-email retention of 0 days, which means keep forever. Before you change it, find out whether the attachments are the only copy of what you sent customers.

ℹ If you read one line

The no-regret cleanup is standard data, standard routines and a recurrence. It doesn't need a project, just an owner.

Copy to Fabric, then delete

For data that has value but doesn't need to live in D365, like a custom add-on's history or an old audit trail, the pattern is copy, prove, delete.

Five-step flow titled Copy, Prove, Delete, Measure; a copy in Fabric frees 0 GB. 1 Copy to Fabric: incremental, several times a day for busy tables. 2 Reconcile: compare record counts before anything is deleted. 3 Check delete behavior: the lake must keep the rows D365 deletes; some links mirror deletes. 4 Delete in D365: standard cleanup routines, or a custom job for custom tables. 5 Measure and schedule: check usage in PPAC after the cycle, then keep the jobs running.
Everything before step 4 is preparation. Capacity only moves at step 4.

Step 3 is the one people skip. Some D365 to lake links mirror source deletes into the lake by default. Delete a year of history in D365 and the lake copy deletes it too, which destroys the history you meant to keep. Confirm, for the link you use, that deleted rows are retained, or build a separate copy that doesn't follow deletes. Those links also rely on change tracking, a SQL Server feature that records which rows changed, and it adds its own storage in D365.

Archive what Microsoft's archive covers

For closed years of standard business records, such as sales orders and invoices, Microsoft's archive feature moves data out of the live tables where it supports that data. Archiving posted ledger data comes with conditions, such as closed periods and chronological years. Check the current scope for your version before you plan on it, because it has been changing release by release. The archive copies data to Dataverse long-term retention and moves it from the live tables into history tables in the D365 database. Operations space only drops once those history tables are purged, and the retained copy can count against Dataverse capacity.

Keep posted financials, master data and anything open

There's no safe supported purge for most posted financial data. Narrow routines exist for specific history, and they need sign-off from finance. Master data, configuration, security and open transactions stay, always.

Five things that change the numbers in practice

! Be honest about the limits

This page gives the usual answer, not your answer. Retention periods are a legal, tax, audit and contractual question, and some data, like payment authorization history, has industry rules of its own. Get the owners to sign off before anything is deleted.

✓ Bottom line

Schedule the standard cleanup routines this week. Then take the data that needs a decision one family at a time: copy it, prove the copy, delete it in D365, and measure. A Fabric copy is a place to keep history, not a way to save capacity on its own.

Frequently asked questions

Does copying data to Microsoft Fabric reduce our D365 capacity usage?

No. Capacity only falls when rows are deleted in D365. A lake copy is what makes the delete acceptable, not the saving itself.

Which data is safe to delete first?

Technical history that standard cleanup routines handle: batch job history, batch jobs, notifications, data management staging and job history. Schedule the routines with a recurrence so it stays clean.

Can we delete old posted ledger entries?

Generally not through a supported purge. Microsoft's archive feature covers some ledger scenarios with conditions, such as closed periods. Keep posted financial data by default and involve finance before any change.