Clean My Windows is a python script developed for CS50P's final project. The project aims to clean unnecessary junk and cache files from a Windows system, freeing up valuable disk space and improving system performance.
- The script scans for various cache directories, including user temp, system temp, prefetch, and local cache directories.
- It calculates the size of the junk files and displays the results.
- Users are prompted to decide whether they want to clean the cache or not.
- If they choose to clean, the script proceeds to clean the cache and displays statistics after the cleaning process.
- In case of access denied errors, the script logs the paths that couldn't be cleaned.
- Python 3.x
colorama
- Clone the repository
git clone https://github.com/aqib-m31/clean-my-windows.git
- Install the required library using
pip install -r requirements.txt
. - Run the script using
python clean_my_windows.py
.
Note: Run on windows machine.
C:\Users\username\AppData\Local\Temp
C:\Windows\Temp
C:\Windows\Prefetch
- All directories with names
cache
orcache2
inC:\Users\username\AppData\Local