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:
In the Control Panel, navigate to System Settings → Upgrades (in the Platform category) → Data Cleanup. The Data Cleanup screen appears.
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.
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.
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