Loading the table
Why this risk level: History retention setting.
Document attachment history is kept for 180 days by default; lower it to keep the history table smaller. Deferred deletion (recycle bin) defaults to 30 days; 0 keeps deleted attachments indefinitely.
Document management parametersthenGeneralthenHistorythenNumber of days to retain history
Configure document management(opens in a new tab)
Microsoft Learn · Mar 2026
Why this risk level: Retention parameters, not deletion by hand.
Category 'log/temporary data with retention settings': review and lower the retention parameters after testing them in a sandbox.
Microsoft (Dynamics 365 blog) · May 2024