Usually it is safe to do this. However, only delete registry keys if you're certain they're not tied to anything else on your PC. For instance, a file extension that's associated with an app you've removed might also be tied to an important Windows system app or process. Overall, if you're not certain, don't remove an entry. It takes a lot of excess in your registry to start slowing down your computer.