Issue
- As an administrator, I would like to clean up the environment - therefore retrieve free space - by deleting previous exports which are no longer needed.
Environment
Resolution
-
Resolution A) - A method to delete previous exports on the UI
- Log in as admin
- At the Product Menu, navigate to Content / Documents and Media or any other portlet/site which supports export/import (see screenshot export_modal.png)
- By clicking the ellipsis menu (three dots at the top bar), navigate to Export/Import modal
- At Export/Current and Previous tab, select the export to be deleted
- At the ellipsis menu, select Clear (see screenshot export_modal2.png)
- Note: An administrator should see the exports of other users as well on the UI, although sometimes they may not be visible due to various reasons. In such cases, a script may come in handy to discover and delete these exports which are no longer needed.
-
Resolution B) - the script method
- The script can be ran at menu Server Administration -> Script from the UI of DXP.
- The attached Groovy script is designed to delete background tasks (every export/import process run as background tasks as well). Indeed, it is aimed to do the same method as described above on UI.
- It is possible to export a portlet or the whole site. The script handles both - it is only required to fill the
groupId
.
订阅者专属内容
Liferay企业级订阅提供超过1500篇文章的访问权限,包括最佳范例,排查和解决问题,和其他有价值的解决方案。登录以获得全部权限。
Sign In