Recover database space by deleting audit logs

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM Online, Dynamics CRM 2016

When you enable auditing, Microsoft Dynamics 365 stores the change history for transactions in the form of audit logs in the database. You can delete the old or unwanted logs to clean up the database space.

Warning

When you delete an audit log, you can no longer view the audit history for the period covered by that audit log.

  1. Make sure that you have the System Administrator or System Customizer security role or equivalent permissions.

    Check your security role

    • Follow the steps in View your user profile.

    • Don’t have the correct permissions? Contact your system administrator.

  2. Go to Settings > Auditing.

  3. Choose Audit Log Management

  4. Select the oldest audit log. Then, on the command bar, choose Delete Logs.

  5. In the confirmation message, choose OK.

    Note

    You can only delete the oldest audit log in the system. To delete more than one audit log, continue to delete the oldest audit log until you have deleted enough logs.

See Also

View the audit history of individual records