Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Reducing Business Central Database Size by Retaining Recent Data Only

(1) ShareShare
ReportReport
Posted on by 22

Hello everyone,
I have a Business Central database with over 500 GB of data. I would like to retain only the last two years of data and delete the rest, without compressing the data.
Is there a way to achieve this?

 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Reducing Business Central Database Size by Retaining Recent Data Only
    If the data of two years exceeds 500G, I wonder if there are some bad practise customizations, such as storing a lot of attachments or adding a lot of Blob fields?
    The data size can be checked in the table mentioned by gdrenteria.
    Then you can export the data through Configuration Package and clear the data through AL Code.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • gdrenteria Profile Picture
    gdrenteria 12,183 Most Valuable Professional on at
    Reducing Business Central Database Size by Retaining Recent Data Only
    Hi
    If you work a lot with attached documents, this also penalizes you. If you check the following option, see which tables are the "heaviest." You should definitely enable the option to save documents in another external location. Also, check if you use email sending with attached documents, this also penalizes you.
    Best
    GR
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 24,824 Super User 2024 Season 2 on at
    Reducing Business Central Database Size by Retaining Recent Data Only
     
     
    Also, do you know which tables are taking the majority of space? 500gb is a lot for a Business Central database. If you don't know, you can look at the Table Information Page to see which tables are taking up a lot of space. Usually its things like attachments or change log entries. I prefer to delete these before deleting actual documents. 
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans