Delete audit logs to recover database space

Note

If you have enabled Unified Interface only mode, before using the procedures in this article do the following:

  1. Select Settings (Gear button.) on the navigation bar.
  2. Select Advanced Settings.

    Advanced Settings.

When you enable auditing, Dynamics 365 Customer Engagement (on-premises) stores the change history for transactions in the form of audit logs in the database. You can delete old and unwanted logs to clean up your database space.

Caution

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

Audit data and user activity
Retrieve and delete the history of audited data changes