A 2016 On-Premise installation I've been asked to look after has over 2 million records in PluginTraceLogBase so I tried to clear out a few of the old ones.
Unfortunately Bulk Delete fails because the user I'm running as (a System Administrator) doesn't have permission to clear out the records.
I've done some investigation and there are a lot of records associated with an OrganizationId I don't recognize, which is why I don't have permission:
select OrganizationId, count (*) from PluginTraceLogBase group by OrganizationId | |
7EE40B1A-E3D5-E711-80DB-3417EBF090B8 | 9840 |
6323F79A-00E1-E711-80DC-3417EBF090B8 | 1611984 |
1A54A1C6-8BE5-E711-80DC-3417EBF090B8 | 419045 |
A47AD300-4F23-498F-B3A9-7DEC0A659F7E | 5996 |
2046865 |
For reference, the current instance is the "1A54" one.
Ignoring how they go there, is there a way to delete these records without running queries directly against the database?
If I update one of the records in the table, updating the organizationId form "6323F79A" to "1A54A1C6" Bulk Delete works. Is it "ok" to do that?
Any help would be very gratefully received.