Legacy Knowledge Base
Published Jun. 30, 2025

How to delete old audit events 'audit_auditevent' table in 7.2+.

Written By

Neil Cuzon

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

  • I want to clean up the AUDIT_AUDITEVENT table in a 7.2+ instance, because the old data is taking up too much space. However, the API made after 7.2, and the previous methods of clearing the 'audit_auditevent'  table no longer work. 

Environment

  • DXP 7.2, DXP 7.3, DXP 7.4

Resolution

  • Delete methods for 'AUDIT' have moved here.
  • If your objective is to clean out the audit table, you could alternatively truncate the table manually for a potentially faster process.
  • If your Audit table becomes full rather quickly, we also suggest evaluating whether you might want to disable auditing if it is not needed. If it is needed, it may also be possible to institute a regular purge process to delete records that are older than a given timeframe. 

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base