Recover database space by deleting audit logs

When you enable auditing, customer engagement apps (Dynamics 365 Sales, Dynamics 365 Customer Service, Dynamics 365 Field Service, Dynamics 365 Marketing, and Dynamics 365 Project Service Automation), store 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.


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 permission.

    Check your security role

    • Follow the steps in View your user profile.

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

  2. In the Power Platform admin center, select an environment.

  3. Select Settings > Audit and logs > Audit Log Management.

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

  5. In the confirmation message, choose OK.


    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

Manage Dataverse auditing
Dataverse developer guide: Delete audit data