Ways to delete duplicate files

There used to be tons of duplicate files on my PC. I didn't know where they came from, but I knew that I needed to delete them immediately. I didn't know where to search for a solution, so I went on YouTube and typed “ways to delete duplicate files” into the search bar. That's where I found the solution to my problem. It was a video review of some software that was meant to delete the duplicate files from your PC. I downloaded it from the link in the description of the video, and I am really satisfied by its practicality. The software did wonders to my PC, and I am really thankful software like that exists.