Audit deletion older than certain time

Hello, I have a problem with deleting audit history. I tried using : await doo.functions.audit.delete({
applicationId: ‘my id’,
olderThan: ‘2025-07-11T00:00:00.000Z’, // Dátum 11. júl 2025 (začiatok dňa, všetky predchádzajúce záznamy budú vymazané)
tableIdList: []
}); in the workflow automation when clicking my defined button, but i get this error : 2025-11-09 20:55:12Z (UTC): The Workflow finished with the result:
Exception of type ‘CorkSolutions.Tabidoo.CoreLib.Exceptions.Security.DocumentAccessDeniedException’ was thrown. (AppName: n/a, TableName: n/a), DebugInfo: appId=‘my id’.

Any suggestions?

Hello Leserik,

it looks like the button workflow does not have access - it looks like a role restriction? So my question would be - are you the owner of the application? If not, is there possibly a table/file that your role does not have access to? You could try to name a specific id of a table in the parameter ‘tableIdList’ and see if that works for that one table. Also, information whether there are any documents would be helpful, just in case.

If you are the owner of the application, please, still try using it just for one specified table first and let us know what was the result.
Thanks,
Anna