Windows Cleanup

Clear Temp Files in Windows Safely

Clear Windows temp files safely using built-in tools and beginner-friendly PowerShell commands.

Temporary files are created by Windows and apps during normal use. Clearing them can free disk space, but cleanup should be limited to safe temp locations.

Open the user temp folder

explorer %temp%

You can manually review files before deleting them.

PowerShell cleanup command

Get-ChildItem -Path $env:TEMP -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue

What this command does

It tries to delete files inside your current user temp folder. Files currently in use may be skipped.

Safety warning

Do not modify this command to target your whole user folder, Downloads folder, Desktop, or C:\Windows.