We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d72dd commit 3ac70eaCopy full SHA for 3ac70ea
WindowsDiskCleanup/Public/Remove-DebugDiagLogs.ps1
@@ -0,0 +1,13 @@
1
+function Remove-DebugDiagLogs {
2
+ [CmdletBinding()]
3
+ param(
4
+ [Parameter(Mandatory = $true)]
5
+ [int]$Days,
6
+
7
+ [switch]$DryRun
8
+ )
9
10
+ process {
11
+ Get-Item "$env:SystemDrive\Program Files\DebugDiag\Logs\DbgSVC_*.txt" | Remove-OldItem -Days $Days -DryRun:$DryRun
12
+ }
13
+}
0 commit comments