{"title":"Reducing Data Stored in Business Central Databases","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/database-reduce-data/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/database-reduce-data, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/database-reduce-data","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn about the best ways to reduce data stored in Business Central databases.","date":"2021-04-01","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Reducing Data Stored in Business Central Databases","slug":"reducing-data-stored-in-business-central-databases","at":0,"chars":2355},{"level":2,"title":"Delete unused companies","slug":"delete-unused-companies","at":505,"chars":144},{"level":2,"title":"Delete documents","slug":"delete-documents","at":649,"chars":280},{"level":2,"title":"Use retention policies","slug":"use-retention-policies","at":929,"chars":265},{"level":2,"title":"Compress tables","slug":"compress-tables","at":1194,"chars":1013},{"level":2,"title":"Related information","slug":"related-information","at":2207,"chars":148}],"text":"# Reducing Data Stored in Business Central Databases\nThe article provides an overview of the different ways to reduce the amount of data stored in a Business Central database. Reducing the size of your database serves the following purposes:\n Prevents reaching the size limit when using Business Central online.\n Improves runtime performance.\n Improves database management processes, like backing up and restoring databases.\nThese measures are typically done by an application administrator or developer.\n## Delete unused companies\nIf you have companies that are no longer needed, such as test companies or the Demo company, delete these companies.\n## Delete documents\nOver time, the database will accumulate historical data for documents, like invoiced purchase orders. If these documents are no longer needed, delete them.\nSee Manage Storage by Deleting Documents or Compressing Data</admin-manage-documents#delete-documents>.\n## Use retention policies\nRetention policies allow you to specify how frequently you want Business Central to automatically delete outdated data in tables that contain log entries and archived records.\nSee Define Retention Policies</admin-data-retention-policies>.\n## Compress tables\nBusiness Central supports data compression of tables. Compressing table data saves space and helps improve performance of I/O-intensive workloads.\n> NOTE\n> With Business Central online, page-level data compression is automatically enabled on tables in a tenant. It's applied to Microsoft extensions and third-party extensions, unless the CompressionType property on a table is explicitly set to None.\nThere are two ways to enable or change data compression in Business Central:\n On a table-level, use the ../developer/properties/devenv-compressiontype-property on table objects.\n On a database-level (on-premises only), use the Start-NAVDatabaseCompression cmdlet<https://learn.microsoft.com/powershell/module/microsoft.dynamics.nav.management/start-navdatabasecompression>. This cmdlet is only available with Business Central 2020 release wave 1 and later.\nFor more information about data compression, see Using table partitioning and data compression<using-sql-partitioning-and-compression>.\n## Related information\nManaging Capacity<tenant-admin-center-capacity>\nCreating Databases in Business Central<../deployment/devenv-create-databases>"}