Data Cleanup

Available 7.3+

When you’re done using an obsolete Liferay app or capability, you can remove its data. You can use the Control Panel or a configuration file to do data cleanup.

Here’s how to clean up data from obsolete features:

  1. In the Control Panel, navigate to System SettingsUpgrades (in the Platform category) → Data Cleanup. The Data Cleanup screen appears.

    Data Cleanup provides an interface for removing data from obsolete Liferay applications.

  2. Select the modules you want to clean up and click Save.

    note

    To save the cleanup settings to a configuration file, click the Actions menu and select Export.

    The data cleanup executes.

Your server is unburdened of obsolete data and Data Cleanup is disabled automatically for all the modules.

note

After executing Data Cleanup (even via a configuration file), DXP disables it automatically by default for every module. This prevents unnecessary, redundant data cleanup.

In versions earlier than 7.4, Data Cleanup settings persist. To disable cleanup in these older versions, uncheck every module in the Data Cleanup screen and click Save or set the module cleanup keys false in a com.liferay.data.cleanup.internal.configuration.DataCleanupConfiguration.config configuration file.

note

You can also clean up module data on server startup (in a Liferay Docker container or on a local machine) using a com.liferay.data.cleanup.internal.configuration.DataCleanupConfiguration.config configuration file. After the cleanup, prevent subsequent server startups from running the cleanups again by removing the configuration file from the osgi/configs folder.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy