+

Search Tips   |   Advanced Search

Disable file versioning

By default, when a user uploads a new version of a file it becomes the latest version, and all previous versions are kept. Users can see all versions of a file in the user interface. We can disable file versioning in the files-config.xml properties file.

for information about how to start the wsadmin tool.

Disable versioning can help control the size of data storage. When you disable versioning before users start using Files, only one version of a file is ever stored, and all updates are reflected in that version.

However, we can disable versioning at any time. If there are already multiple versions of a file when we disable versioning, the latest version becomes the active version, and all future updates are reflected in that version. The older versions are hidden from the user interface, but still exist and take up space in the database. If a user reaches their space quota, we can delete these older versions by enabling versioning again and having the user open the file page, click the Versions tab, and delete versions.

We can also perform a manual database update to remove all versions of files prior to the current ones. You would execute a delete statement on the database for the MEDIA_REVISION table, but specify a constraint the column IS_CURRENT_REVISION = 0, as a record still exists for the current version.

  1. Start the wsadmin client.

  2. Check out the Files configuration files:

    To get cell name...

  • To view the current configuration settings use the following command:

      FilesConfigService.showConfig()

  • To set the file.versioning.enabled property to false:

      FilesConfigService.updateConfig("file.versioning.enabled", "false")

  • Check the configuration files back in after making changes, and they must be checked in during the same wsadmin session in which they were checked out for the changes to take effect. See the topic Apply Files property changes for details.


    Parent topic:
    Administer Files


    Related:

    Start the wsadmin client

    Apply Files property changes