Deleting background tasks (such as LAR exports)
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
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.
Did this article resolve your issue ?