Skip to content

Commit

Permalink
tablecleanup daily downloaded queries
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Mar 3, 2025
1 parent ab0d7da commit 426427c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Start-TableCleanup {
@{
DataTableProps = @{
Context = (Get-CIPPTable -tablename 'AuditLogSearches').Context
Filter = "Timestamp lt datetime'$((Get-Date).AddDays(-7).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ'))'"
Filter = "Timestamp lt datetime'$((Get-Date).AddDays(-1).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ'))'"
First = 10000
Property = @('PartitionKey', 'RowKey', 'ETag')
}
Expand Down

0 comments on commit 426427c

Please sign in to comment.