How to delete Liferay Audits?How to delete Liferay Audits?https://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1213952562024-03-28T13:09:45Z2024-03-28T13:09:45ZRE: How to delete Liferay Audits?Alex TRICAhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1215659872022-11-11T16:36:44Z2022-11-11T07:04:24Z<p>
<br /> Hi ! I see in my portal database the table PORTALAUDIT_Audit
with o lot of records.</p>
<p>
<br /> The most part of them are TRACK records and I am not interesed
about this, so, I should like to diseable TRACKING Audit. I need to
keep other kind of Audit records.</p>
<p>Please advise me how to configure Audit so that do not generate audit
record for TRACKING..</p>
<p>Many thanks !</p>
<p>Friendly, Alex<br /> </p>Alex TRICA2022-11-11T07:04:24ZRE: How to delete Liferay Audits?Zsigmond Rabhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214039302022-04-21T14:20:35Z2022-04-21T14:20:34Z<p>Hi Vishnu,</p>
<p>There are <em>deleteAuditEvent</em> methods in the <a
href="https://docs.liferay.com/dxp/apps/foundation/latest/javadocs/com/liferay/portal/security/audit/storage/service/AuditEventLocalServiceUtil.html">AuditEventLocalServiceUtil</a>
class that you can use from some script. I think, you can remove old
entries periodically, mainly if you don't use them at all.</p>
<p>Zsigmond</p>Zsigmond Rab2022-04-21T14:20:34ZHow to delete Liferay Audits?Vishnu S Kumarhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1213952552022-04-08T13:40:32Z2022-04-08T13:40:31Z<p>We've over 60 million audit logs in the database and we're not using
it at all. It's causing problems during DB migrations and all. How to
delete these massive logs from DB in an efficieint manner. My
questions are:</p>
<ol>
<li>Is there any bulk delete API for these Audit logs?</li>
<li>Are there any consequences to deleting these logs directly from
the DB?</li>&l