Skip to content

Commit bbb379a

Browse files
committed
添加 windows 版本删除缓存
1 parent 2f0188e commit bbb379a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.rmcache.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# the airticle link reference:
3+
#
4+
# 1. https://docs.microsoft.com/zh-cn/powershell/scripting/samples/working-with-files-and-folders?view=powershell-7.1
5+
# 2. https://docs.microsoft.com/zh-cn/powershell/scripting/samples/working-with-registry-keys?view=powershell-7.1
6+
#
7+
# the delete files
8+
Get-ChildItem -Path . -include *.pyc -Recurse | Remove-Item
9+
# the delete directory
10+
Get-ChildItem -Path . -include __pycache__ -Recurse | Remove-Item
11+
Remove-Item -Path .\build\* -Recurse
12+
Remove-Item -Path .\out\log\* -Recurse

0 commit comments

Comments
 (0)