We recently exceeded log storage capacity for our Power Platform environment
We can check the same at Resources >> Capacity inside the Power Platform admin center.
One of the sandbox environments had the most Log Usage
We deleted the plugin trace logs and all the audit partitions (except the active/current one, which the system doesn’t allow)
If we try deleting the current active partition, we will get the below error –
Microsoft.Crm.CrmException: You cannot delete audit data in the partitions that are currently in use, or delete the partitions that are created for storing future audit data.
The partitions are created on quarterly basis each year –
1 Jan – April, 1 April – July, 1 July – October, 1 Oct – January
Even after deleting the plugin trace logs and the partitions, we didn’t see any change in the storage capacity usage. So we raised a Microsoft Support Ticket and were informed by the team that they can delete the active partition for us, and it could take around 3 days. As that was a sandbox environment and we had no use of Audit data we went ahead and the Support Team deleted the active partition for us. (Also there was some issue in our data center with regards to the recalculation of the storage and it took few more days for that change to reflect inside the Capacity page of Power Platform Admin Center).
This way we were able to reclaim some of the log storage.
So basically we just need to raise Microsoft Support Ticket and request the same.
More on Audit –
- Audit Entity few key point – https://nishantrana.me/2021/08/31/audit-entity-table-few-key-points-dynamics-365-power-apps/
- Activity Logging – https://nishantrana.me/2021/02/24/activity-logging-dynamics-365-apps/
- RetrieveRecordChangeHistoryRequest –https://nishantrana.me/2018/10/31/using-retrieverecordchangehistoryrequest-to-get-audit-detail-in-dynamics-365-ce/
Also check the new process for deleting audit logs –
Hope it helps..
2 thoughts on “Delete the current (active) partition in Audit – Dynamics 365”