Skip to content

Commit 3d773d7

Browse files
committed
Added Remove-ChromiumTempData
1 parent 00ddcdc commit 3d773d7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
function Remove-ChromiumTempData {
2+
[CmdletBinding()]
3+
param(
4+
[Parameter(Mandatory = $true)]
5+
[int]$Days,
6+
7+
[switch]$DryRun
8+
)
9+
10+
process {
11+
$paths = @("$env:SystemRoot\SystemTemp\scoped_dir*", "$env:SystemRoot\SystemTemp\chrome_url_fetcher_*")
12+
Get-ChildItem $paths | Remove-OldItem -Days $Days -DryRun:$DryRun
13+
}
14+
}

0 commit comments

Comments
 (0)