Disk Cleanup is another utility that is accessible regardless of your Windows version. The easiest way to open it is to search for "Disk Cleanup" in the search bar and bring up the window.
Defragmenting disks used to be a big thing back in the day. I certainly remember doing it every now and then on my PC back in the mid-2000s, and it felt like it really helped spedd up your PC. But ...