-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rmcache.ps1
More file actions
24 lines (22 loc) · 808 Bytes
/
.rmcache.ps1
File metadata and controls
24 lines (22 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# the airticle link reference:
#
# 1. https://docs.microsoft.com/zh-cn/powershell/scripting/samples/working-with-files-and-folders?view=powershell-7.1
# 2. https://docs.microsoft.com/zh-cn/powershell/scripting/samples/working-with-registry-keys?view=powershell-7.1
#
### THE DELETE FILES
Get-ChildItem -Path . -include *.pyc -Recurse | Remove-Item
### THE DELETE DIRECTORY
## .tox/*
Remove-Item -Path .\.tox\* -Recurse
## ./build/*
Remove-Item -Path .\build\* -Recurse
## ./src/com.dvsnier.*.egg-info
Remove-Item -Path .\src\com.dvsnier.*.egg-info -Recurse
# Get-ChildItem -Path .\src\com.dvsnier.*.egg-info -Recurse
## ./dist/*
Remove-Item -Path .\dist\* -Recurse
## ./out/log/*
Remove-Item -Path .\out\log\* -Recurse
## __pycache__
Get-ChildItem -Path . -include __pycache__ -Recurse | Remove-Item