Tips and tricks for laptop users

Hi, I just want to know if there’s anything I can install on my laptop to prevent unnecessary files from taking up memory. For example, when I download a game and later delete it, I still see leftover files. Sometimes I notice duplicate files as well, and I’m not sure if I need all of them. Basically, I’m asking if there’s an app or tool that can automatically manage and remove files I don’t need