https://github.com/rezapace/remove-file-sampah-
This script will delete junk files on Windows 10 with a single click. The junk files that will be deleted are located in the following directories:
https://github.com/rezapace/remove-file-sampah-
git-reza kuliah-malam kumal-projek powershell ps1 script webkumal
Last synced: 29 days ago
JSON representation
This script will delete junk files on Windows 10 with a single click. The junk files that will be deleted are located in the following directories:
- Host: GitHub
- URL: https://github.com/rezapace/remove-file-sampah-
- Owner: rezapace
- Created: 2022-11-21T17:41:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-01T00:41:17.000Z (almost 2 years ago)
- Last Synced: 2025-12-25T22:31:10.432Z (6 months ago)
- Topics: git-reza, kuliah-malam, kumal-projek, powershell, ps1, script, webkumal
- Language: PowerShell
- Homepage: https://www.webkumal.link/
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Junk File Remover
This script will delete junk files on Windows 10 with a single click. The junk files that will be deleted are located in the following directories:
- `C:\Windows\Prefetch`
- `C:\Users\R\AppData\Local\Temp`
- `C:\Windows\Temp`
## Script Explanation
```powershell
Get-ChildItem -Path "C:\Windows\Temp" *.* -Recurse | Remove-Item -Force -Recurse
```
The above script will delete all files with any extension in the `C:\Windows\Temp` directory and its subdirectories.
```powershell
Get-ChildItem -Path "C:\Users\R\AppData\Local\Temp" *.* -Recurse | Remove-Item -Force -Recurse
```
The above script will delete all files with any extension in the `C:\Users\R\AppData\Local\Temp` directory and its subdirectories.
```powershell
Get-ChildItem -Path "C:\Windows\Prefetch" *.* -Recurse | Remove-Item -Force -Recurse
```
The above script will delete all files with any extension in the `C:\Windows\Prefetch` directory and its subdirectories.
```powershell
Clear-RecycleBin -Force
```
The above script will delete all files in the recycle bin.
## How to Use
1. Open PowerShell by right-clicking on the Start Menu and selecting "Windows PowerShell".
2. Copy the script above and paste it into PowerShell.
3. Press Enter to run the script.
4. Wait until the process is complete.
5. The junk files in the specified directories will be deleted.
This structure provides a clear and concise explanation of the script, making it easy to understand and follow.