> Source: [sk94047](https://support.checkpoint.com/results/sk/sk94047)

# sk94047 - How to set configure automatic deletion of Database Revision Control versions with 'dbedit' tool

| Property | Value |
|----------|-------|
| Solution ID | sk94047 |
| Date Created | 2013-08-07 |
| Last Modified | 2018-03-05 |
| Technical Level | General |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82.20, R81.20, R82, R82.20 |

## Solution

Automatic deletion of Database Revision Control versions can be set using **`dbedit`** tool in the following way:

1. Connect to command line on Security Management Server / Multi-Domain Security Management Server (over SSH, or console).   

   Note:  
   On Multi-Domain Security Management Server, user must switch to the context of the relevant Domain Management Server:  
   **`[Expert@HostName]# mdsenv `*Domain_Management_Server***   

2. Start the `dbedit` tool:   

   **`[Expert@HostName]# dbedit`**   

3. Press Enter key to log in to localhost.   

4. Run the following dbedit commands:   

   **`dbedit> modify mgmt_versions_config db_versions_auto_del active true`**   
   **`dbedit> modify mgmt_versions_config db_versions_auto_del kept_units 15`**   
   **`dbedit> update_all`**   
   **`dbedit> quit`**   

   In the above example:  
   * '`db_versions_auto_del active true`' enables the '`Automatically delete old versions`' setting
   * '`db_versions_auto_del kept_units 15`' enables the '`Delete versions older than`' setting and sets the number to 15 '`versions`'

The information related to the Database Revision Control configuration is stored in the **`$FWDIR/conf/mgmt_versions_config.C`** file on Security Management Server / relevant Domain Management Server.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
