What process does CCleaner use to uninstall applications that can't be uninstalled in settings?

Hello,

Windows 10 user here. I notice that CCleaner has the ability to uninstall applications that may be greyed out as unable to uninstall in 'Apps & Features' in 'Settings'. For example, Alarms & Clocks and Messaging are two apps I notice aren't able to be uninstalled, but are able to be inside CCleaner.

Could a developer or member who knows explain exactly what process is going on when CCleaner uninstalls one of these applications? Is there a hidden .bat file or something along those lines that Microsoft has somewhere that allows them to be uninstalled, is it actually just running a Powershell command in the background to accomplish this, is it removing the actual file location period, or is it just removing the shortcut?

Personally, I would just like to know what it is doing and how it is doing it, and if it can be replicated (or reversed if the application is needed in the future.) I may be overly paranoid, but I could use some transparency on this. Any information is appreciated, thanks!

Since CCleaner is closed-source software it's very highly unlikely they will reveal the info.

With that in mind there's a YouTube video by Barnacules explaining how to do this on your own using the built in Powershell:

https://www.youtube.com/watch?v=gnAzCnbDNr8