The instructions apply to Windows, but many of these methods will work in other versions of Windows.
How Do I Get Rid of System Junk on My PC?
There are several methods, and most of them overlap.

bring up the Recycle Bin.
SelectEmpty Recycle Bin, and then confirm withYes.
One way to avoid having to do this in the future is to hold downShiftwhen you delete things.

Those files will instead skip right over the Recycle Bin, letting you clean up those junk files instantly.
Delete Temporary Files
Other junk files exist in Windows 11 in the form of temporary files.
Open controls (Win+i) and go toSystem>Storage.

SelectTemporary filesand thenRemove files>Continue.
The Storage part of prefs also lets you see what’s taking up all the space on your system.
Ensure the first option is enabled:Keep Windows running smoothly.

Also, turn on the button belowAutomatic User content cleanup.
Scroll down this screen a bit and configure the cleanup schedules to your preference.
For example, to automatically clean junk files every month, chooseEvery monthfrom the first drop-down menu.

Run Storage Sense nowwill perform these actions on-demand whenever you select it.
This also serves as another way to empty the Recycle Bin and delete temporary files.
Search for and openDisk Cleanup.
Check everything you want to clean.
Items are separated in aWindowsandApplicationstab.
SelectRun Cleanerto start deleting junk files.
Or, chooseAnalyzefor a detailed look at whatcanbe cleaned with CCleaner (nothing will be deleted).
Should You Delete System Junk Files?
It makes sense, right?
They’re either not being used by your gear any more or it’s safe to delete them.
FAQ
Toremove junk files from Windows 10, right-click theRecycle Binand selectEmpty Recycle Bin.
PressWindows key + Rto open a Run dialog box, and then enter%temp%and clickOK.
PressCtrl + A(select all), and then pressDeleteon your keyboard.
This removes all temporary files from Windows 7.