Legacy Knowledge Base
Published Sep. 10, 2025

API for document deletion

Written By

Thanga Meena

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

  • API for the document deletion

Environment

  • Liferay portal 6.2

Resolution

Please Note: The following procedures and unofficial links involve customizations that are beyond the scope of Liferay Support.  Please exercise appropriate discretion in the use of this information.

  • By default, Liferay has enabled the recycle option. The deleted files will be available in the recycle bin.
  • The API DLAppServicehelps to delete the files permanently based on the criteria or needs with custom development.
  • Best practice: Before testing it, please keep a backup of your data

Additional Information

  • Please go through the java docs for the API reference. 
  • Liferay help center article for your reference.
  • The additional unofficial reference provides the sample JAVA code implementation using this API.  
  • To clean the previous version of documents, refer to the blogs
Did this article resolve your issue ?

Legacy Knowledge Base