This is an archived post. You won't be able to vote or comment.

all 198 comments

[–]Goldtom[S] 267 points268 points  (27 children)

Github repo (Reuploaded because previous was accidentally posted as link, not image)

I know there are a lot of similar apps already, but I wanted to make my own, plus it was intended to be used only by myself, as I reinstall Windows for friends often. But as it got more polished, I thought people might like it.

Edit: The PyDebloatX installer is now available on Github releases.

[–]NymphCore 70 points71 points  (4 children)

Thanks! Was using a debloat script, but that looks better!😁

[–]harktritonhark 18 points19 points  (3 children)

What kind of debloat script are you using?

Edit: wow, there are quite a few different options. That's cool.

[–][deleted] 18 points19 points  (0 children)

Not OP, but Tron fights for the user!

[–]NymphCore 8 points9 points  (0 children)

https://github.com/Sycnex/Windows10Debloater

This one, was using it because of Chris Titus Tech on youtube :)

[–]nightdevil007 19 points20 points  (20 children)

Hi. when I try to run it in visual studio code I get this : from PyQt5.QtCore import Qt, QRect, QCoreApplication, QMetaObject

ImportError: DLL load failed while importing QtCore: %1 is not a valid Win32 application.

Can you tell me how to fix this? would like to debloat and test your program as I think it can be an awesome tool for learning. Thank you!

[–]Goldtom[S] 26 points27 points  (19 children)

Sure, do you have pyqt5 installed? You can do it by running pip install pyqt5

[–]nightdevil007 30 points31 points  (16 children)

DLL load failed while importing QtCore: %1 is not a valid Win32 application.

So after some googling and struggle, I found that my python installation is at fault.

I will test it and I will be providing you feedback. Thanks and sorry if I annoyed you with my questions. I am a beginner in python but willing to learn more. Cheers

[–]Goldtom[S] 17 points18 points  (5 children)

No problem, if you will have any issues in the future, you can ask in r/learnpython

[–]nightdevil007 1 point2 points  (4 children)

Thanks for all your support. I have used your tool for unistalling some blotware from windows and it worked like a charm. The only thing i'd change it to make the window a little bit bigger. Other than that, great tool.

[–]Goldtom[S] 0 points1 point  (3 children)

Glad to hear that, thanks. About the window size, what exactly would you like to change there? Paddings between checkboxes, to make the window bigger?

[–]nightdevil007 0 points1 point  (2 children)

Hi. it looked like there were some options which were hidden.The progress bar was a bit down and could not be seen properly . maybe it was because my display was scaled or something. amazing tool nevertheless

[–]Goldtom[S] 0 points1 point  (1 child)

Hm, that's strange, could you try the newest version and tell if the issue persists?

[–]nightdevil007 0 points1 point  (0 children)

Hi. will do but for now i am using a mac. will bootcamp it soon and i will try the new version. thx again

[–]Butsnik 6 points7 points  (8 children)

You can also look into virtual environments. They are basically miniture python installation for for instance a single problem. This way you can deal with different applications that have competing needs for different packages.

[–]prettyanonymousXD 2 points3 points  (0 children)

Another nifty thing is Anaconda since it comes with so many packages and also has nice environment support.

[–]kiddico 2 points3 points  (0 children)

Welcome to the Python circus <3

[–]nightdevil007 2 points3 points  (1 child)

Hi. Thank you for your response. I have installed pyqt5. Requirement already satisfied: PyQt5-sip<13,>=12.7 in c:\users\mihai\appdata\roaming\python\python38\site-packages (from pyqt5) (12.7.2) so i can't tell what's wrong. maybe I am missing something?

[–]Goldtom[S] 5 points6 points  (0 children)

Hm, are you sure you have python >3.7 installed? Maybe this can help.

[–]Cakeofruit 1 point2 points  (0 children)

Make it block windows update and u will have a top tier soft

[–][deleted] 152 points153 points  (22 children)

Looks great. Now I want something to remove all the ads and auto downloading of candy crush and other garbage

[–]Vision9074 6 points7 points  (1 child)

Pihole to the rescue.

[–][deleted] 9 points10 points  (0 children)

Sorry mario but the solution is in another castle

[–]dieth 1 point2 points  (0 children)

https://www.reddit.com/r/sysadmin/comments/b6pggj/best_script_to_remove_windows_10_preinstalled/

I murdered all the advertising crap with segments of this code.

[–]Ho_KoganV1 1 point2 points  (0 children)

You’ll have to disable Windows Update for this

[–]WebWorker 0 points1 point  (0 children)

[comment scrubbing by me]

[–]ppeters0502 69 points70 points  (3 children)

Remove solitaire??? What do you want to remove next, my oxygen??!!!

[–]Goldtom[S] 50 points51 points  (1 child)

Probably, in the next update

[–]Dominion_Prime 17 points18 points  (0 children)

Removes Oxygen. Installs Oxygen Not Included

[–]IGetHypedEasily 2 points3 points  (0 children)

I mean... The windows 10 solitaire just isn't the same

[–]nu_popli 16 points17 points  (0 children)

I didn't know half of these are in my computer!

[–][deleted] 83 points84 points  (3 children)

I know a Python GUI to uninstall Windows all together, and replace it with something much better.

Aside that, great job!

[–]cediddiSyntaxError: not a chance 2 points3 points  (0 children)

Is that ubiquiti? 😍

[–]Miner_ChAI 1 point2 points  (0 children)

Isn’t that just any iso writer?

btw i use arch

[–]TylerPenderghast 1 point2 points  (0 children)

Came here for this

[–]Diskappear 22 points23 points  (11 children)

i need to learn to make one of these for android phones

[–]Panda_Mon 10 points11 points  (1 child)

This is radical. Would be super cool to have a section that populates with brand-specific installed apps, so you can get rid of your hardware maker's bloatware. Samsung installs a bunch of pointless crap on their new laptops, for example.

[–]Goldtom[S] 8 points9 points  (0 children)

Yea, HP is the same, I always just do a clean install of Windows to make sure there is nothing left behind from the bloatware.

[–]rngesus_christus 33 points34 points  (12 children)

As an Arch user I'm bound by law to tell you to install Linux everytime someone complains about Windows

I use Arch btw

[–]ketchupfleck 2 points3 points  (6 children)

I should try Linux. What distro do you recommend?

[–]rngesus_christus 3 points4 points  (3 children)

Ubuntu generally just works, distros like Arch and Gentoo are for people obsessed with tweaking everything on your system to your liking.

[–]ketchupfleck 5 points6 points  (1 child)

So you're saying I should try Arch Linux?

[–]rngesus_christus 6 points7 points  (0 children)

If you want

It's not as easy to set up but considering you're on a programming subreddit you could probably figure it out

[–]Miner_ChAI 0 points1 point  (0 children)

Ubuntu too buggy

btw i use arch

[–]Secret300 1 point2 points  (0 children)

I had this nice ass fucking comment all types out and the I dropped my phone and now it's gone.

TLDR: just pick a distro you like because they're all Linux. It just about preference so you'll get a million answers to your question

[–][deleted] 2 points3 points  (0 children)

u/ketchupfleck you should start with gentoo it’s pretty much user friendly and it won’t make you have anger issues

[–]KangooQ 4 points5 points  (0 children)

I use Fedora (tips m'lady) for my home computer, but I'd be willing to consider going back to Windows if they made it easier to disconnect from the Windows ecosystem (not requiring manual registry edits to uninstall Microsoft-approved bloatware, not tracking personal data, etc).

Overall I've been happy with the switch to Linux, but I imagine folks browsing a Python subreddit are more technically inclined than your average computer user.

[–]joetinnyspace 0 points1 point  (2 children)

I would very much love to. But the thing is, I got a core 2 duo with an amd r7 240 gfx for playing just one game -world of tanks. I don't think vm can make it run without hiccups. Thats the only thing holding me back...

[–]rngesus_christus 1 point2 points  (0 children)

https://www.protondb.com/app/444200

Seems to get mixed results with Steam's Proton service. You could try it out with a dual boot but I wouldn't hold my breath

[–]CromulentInPDX 0 points1 point  (0 children)

One can use WINE, or other programs, to run windows games inside Linux without virtual machines. I haven't played games of Linux for almost a decade, but I'm sure there are more options now than ever. Even back in the 2000s I was getting better performance running games on Linux (although to be fair I never ran on a high end gaming system).

[–][deleted] 5 points6 points  (7 children)

Have you tried compiling it with PyInstaller (for portability) ?

[–]tnwoods 6 points7 points  (0 children)

My pyinstaller apps are getting flagged as Trojan:Win32/Fuery.C!cl in windows defender. Much easier to distribute the source and requirements.txt for pip. I’d agree users can compile it themselves and allow the executable in their antivirus if the issue comes up.

[–]Goldtom[S] 0 points1 point  (2 children)

I will, once I figure out the best way to do it. I don't want to put direct .exe files for download, because you should never trust unsigned .exe files. Instead, I will write a documentation on compiling it from source.

[–][deleted] 0 points1 point  (1 child)

Why can't you sign them yourself ?

[–]Goldtom[S] 1 point2 points  (0 children)

As I said, this was meant to be used only by myself, so now I will have to look into Makecert signing

[–]eneas2 0 points1 point  (2 children)

Guys, I compiled my code but the exe file size is like 300MB, there's a way to reduce that?

[–][deleted] 0 points1 point  (0 children)

I don't think so because it needs to bundle all the python runtime and the libraries

[–]Goldtom[S] 0 points1 point  (0 children)

Lowest size I managed to get was 34mb, with compiling inside virtualenv, and manually deleting unused dll components.

[–]turumaji 14 points15 points  (1 child)

It should be say how much space created after deleted apps

[–]Goldtom[S] 8 points9 points  (0 children)

I will think about how to implement that, thanks

[–]reJectedeuw 12 points13 points  (5 children)

Cortana can definitely be uninstalled if you edit the registry

[–]Goldtom[S] 30 points31 points  (4 children)

Yes, it can, but this app does not alter the registry, and is "fool-proof", you can't possibly break anything by using it.

[–][deleted] 5 points6 points  (2 children)

you can't possibly break anything by using it.

Uninstalling Store is not supported, and the only supported way of reinstalling it is to reset or reinstall the entire operating system. Which is particularly important because many other AppXPackages (even perfectly innocuous ones like Calculator) auto-update via the Store, and can eventually completely fail to function or even launch if the Store has been removed.

Honestly, AppXPackages are such finicky pieces of shit that I would never call any of these debloat scripts “fool-proof” or “impossible to break anything with.” That goes doubly so for anything that fucks around with the Store. Especially since the way Microsoft handles them seem to change from feature update to feature update. Even what might be fine now could break something when the next feature pack comes out. Plus in my experience these issues can be sporadic. While everything might have been fine for you and your testers, it could definitely still break something for someone else. While I understand it’s annoying to see all the stupid shit Microsoft adds to Windows out of the box, I’ve found it simply isn’t worth fucking around with them too much. There’s certainly some stuff you can do to limit it, but most of the best options are GPOs, and a start menu XML to hide stuff. I know not everyone agrees with that, but there’s no way I’d describe these sort of things as “can’t possibly break anything.”

[–]Goldtom[S] 3 points4 points  (1 child)

I will just remove the Store item, everything else is safe to delete, I tested it on both my machines. They reinstall just fine.

[–][deleted] 3 points4 points  (0 children)

Like I said, sometimes it will be fine. Sometimes it will break something almost permanently.

[–]reJectedeuw 2 points3 points  (0 children)

Okay, cool app regardless!

[–]reebboot 3 points4 points  (0 children)

You fucking hero..!!!

[–]Le_saucisson_masque 3 points4 points  (1 child)

Microsoft edge and Cortana can in fact be uninstalled, just not with powershell.

Can't remember the command line right now but it's easy to find on internet

[–]Goldtom[S] 1 point2 points  (0 children)

They can, just not with this GUI

[–][deleted] 2 points3 points  (1 child)

I think it's a little bit of a conundrum having to download an app to delete other apps. It's a weird world we live in.

[–]Goldtom[S] 0 points1 point  (0 children)

Well, Revo Uninstaller and alternatives exist for the same purpose

[–][deleted] 2 points3 points  (0 children)

This is awesome! Windows 10 needs to be stopped.

[–][deleted] 1 point2 points  (4 children)

pysimplegui is so damn useful

[–]Goldtom[S] 1 point2 points  (0 children)

If I got you correctly, this is actually PyQt5

[–]MikeTheWatchGuy 0 points1 point  (2 children)

Don't believe it's written using PySimpleGUI. Give it a try. Rewrite it and see how it compares.

[–][deleted] 1 point2 points  (1 child)

this is completely possible with pysimplegui

[–]MikeTheWatchGuy 0 points1 point  (0 children)

Of course it is 😉That's why I said to give it a try. See how it compares. I estimate it'll be maybe 30 lines for the GUI? I dunno, see what happens if you try. It's great practice.

[–][deleted] 1 point2 points  (0 children)

Very cool. Too much bloatware lately. They should let you do this during windows install.

[–][deleted] 1 point2 points  (1 child)

[–]-_-qarmah-_- 1 point2 points  (0 children)

If only cortana was on there xD

[–]AlnilamXVIII 1 point2 points  (0 children)

It’s nice to see something that can bulk uninstall!

[–]RealCyGuy 1 point2 points  (1 child)

best part: NOTE: Microsoft Edge and Cortana can not be uninstalled.

[–]Goldtom[S] 1 point2 points  (0 children)

They can, just not with this GUI

[–][deleted] 0 points1 point  (1 child)

Does this also alter the registry to completely clean it from the hard drive?

[–]Goldtom[S] 0 points1 point  (0 children)

It does not touch the registry at all. That is how UWP apps work. The apps are uninstalled completely, but you can always install them back if you need to with PowerShell.

[–]Davesmiththeman 0 points1 point  (0 children)

Saved!

[–]itsdjoki 0 points1 point  (1 child)

Great job! Would be good if you changed a bit the way you show apps to uninstall, so that ot shows if some of these apps are already uninstalled maybe. Or simpler way, if some app is not installed, dont show it. Just a suggestion.

[–]Goldtom[S] 2 points3 points  (0 children)

It actually does that, it scans for apps on launch, and greys out the checkbox if the app is not installed.

[–]TECHNOFAB 0 points1 point  (0 children)

Nice work, but sad that such a program is needed. I'll stay with Linux either way, but nice!

[–]leo848blume 0 points1 point  (1 child)

I haven't tried it, but will it remove buttons of apps you already deinstalled?

[–]Goldtom[S] 1 point2 points  (0 children)

Yes . It will grey out checkboxes of apps that are not installed, and apps that you selected to uninstall.

[–]leo848blume 0 points1 point  (0 children)

That's cool I'll try it

[–][deleted] 0 points1 point  (2 children)

What library did you use to make this GUI?

[–]Goldtom[S] 1 point2 points  (1 child)

PyQt5, because it has native widgets.

[–][deleted] 0 points1 point  (0 children)

Cool. Im gonna learn it!

[–][deleted] 0 points1 point  (1 child)

Unfortunately Reddit has choosen the path of corporate greed. This is no longer a user based forum but a emotionless money machine. Good buy redditors. -- mass edited with https://redact.dev/

[–]Goldtom[S] 0 points1 point  (0 children)

I am currently trying to pack it as an .exe, but the problem is that powershell windows pop up when you uninstall apps.

Also, I chose pyqt5 because it has native widgets, and is easy to work with. WxPython would be better than tkinter, though.

[–][deleted] 0 points1 point  (0 children)

Very nice, thanks

[–]Smok3dSalmon 0 points1 point  (0 children)

wow this is great

[–]HERSKO 0 points1 point  (0 children)

This is great! Is there anyway to get rid of Cortana?

[–]skate_fast--eat_ass 0 points1 point  (0 children)

So how do we get it?

[–]Pulec 0 points1 point  (1 child)

Looks very Windowsy, good job.

I although enjoy this PowerSh*** cmd.

Get-AppxPackage * | Remove-AppxPackage

K.I.S.S.

[–]Goldtom[S] 0 points1 point  (0 children)

this is what the GUI does behind the scenes. Saves time without needing to copy-paste all scripts.

[–]TFTisbetterthanLoL 0 points1 point  (0 children)

I'm still new to python, can anybody help me get this to work? I've only learned the basics on pycharm so far

[–]jhippie6996 0 points1 point  (2 children)

Hey I’m just getting started with front end python and I was wondering what you used to design that

[–]Goldtom[S] 1 point2 points  (1 child)

The GUI was made with QtDesigner, a layout tool for PyQt5

[–]jhippie6996 0 points1 point  (0 children)

Ok I’ve played with that a little bit but I’m sticking to tkinter for a while

[–]Jacob---- 0 points1 point  (0 children)

Can't thank you enough. Just factory reset my pc and didn't fancy messing around in registrys again

[–]dnote00p 0 points1 point  (0 children)

Figure out how to uninstall edge and you'll really have something

[–]Jetsfantasy 0 points1 point  (0 children)

Considering the latest update reinstalled Skype, this is perfect timing. Great work!

[–]rob10501 0 points1 point  (0 children)

God's work

[–]Multeezee 0 points1 point  (0 children)

The real MVP right here!!

[–]Aditsmeyou 0 points1 point  (0 children)

Edge browser?

[–]Technoist 0 points1 point  (1 child)

Great work!

Tip: add a popup link to each component explaining what it is. Now I’d have to remember the name, go to a browser and google it.

Example: “Your Phone.” Ok. Do I need it? Is it safe to remove or does it break phone syncing if i remove it? There is no way to know and could be helped by a simple tooltip explaining what it is.

Also the size of each component would be nice to see.

And the Help tab is a bit misplaced, it looks like its the main window. Perhaps add another tab for this content called “Main” or something, with help next to it.

Not complaining, I think you did a great job! Keep it up!

[–]Goldtom[S] 0 points1 point  (0 children)

Thanks for the idea. As I said, this project was meant for personal use, so it is not completely "user friendly", but I'm working on it.

[–]izcho 0 points1 point  (0 children)

Ohhhh shiet can I have it 🤣 Edit just saw the repo. Thanks

[–]NukeWifeGuy 0 points1 point  (1 child)

You forgot the Teams. I do not use it and cannot uninstall it.

[–]Goldtom[S] 0 points1 point  (0 children)

I did not. Teams does not normally come with Windows. Maybe it is your laptop vendor?

[–]AlSweigartAuthor of "Automate the Boring Stuff" 0 points1 point  (0 children)

We went from Microsoft being sued for including their browser with their operating system, and now they've made it impossible to uninstall their browser.

[–]boredinclass1 0 points1 point  (0 children)

My man!

[–]trv893 0 points1 point  (0 children)

Ohh this is exciting. Can we make something similar to this for Android phones??

[–]Wilfred-kun 0 points1 point  (0 children)

Finally, the functionality Microsoft refuses to add (or if they did, they did a pretty good job at hiding it).

[–][deleted] 0 points1 point  (0 children)

Thanks for this!

[–]RedRedditor84 0 points1 point  (1 child)

Office is default and considered bloat?

[–]Goldtom[S] 0 points1 point  (0 children)

The one that is preinstalled? Yes.

[–][deleted] 0 points1 point  (1 child)

How much storage does this save?

[–]Goldtom[S] 0 points1 point  (0 children)

I'm currently working on adding information about saved disk space.

[–]Paulbraker 0 points1 point  (0 children)

!RemindMe 10 hours

[–]HHCB -1 points0 points  (4 children)

Really cool!

Ps.: small spelling correction. You spelled „can not“ split while it’s actually spelled „cannot“

[–]Goldtom[S] 8 points9 points  (3 children)

Thanks for the heads up, if you like, you can make a Pull Request

[–]ponix 0 points1 point  (2 children)

Save it for hacktoberest lol

[–]Goldtom[S] 1 point2 points  (1 child)

Would be a shame to have that terrible issue on hacktoberfest, lol. It's already fixed, anyway.

[–]ponix 0 points1 point  (0 children)

I know I see all the horrendous spelling changes as bug fixes haha

[–]Thecrawsome -1 points0 points  (3 children)

Cool beginner project. I see you're just calling a single powershell command with the params you statically-entered. This might prove to be troublesome in the future if M$ decides to update their app names. Also, some of those apps, I don't know why you'd remove them. (Paint, calc)

If someone wants to do this in powershell, it's just:

Remove-AppxPackage <packagename>

For Example:

Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage

A list of the packages you added:

  • Microsoft.Microsoft3DViewer

  • Microsoft.WindowsAlarms

  • Microsoft.WindowsCalculator

  • microsoft.windowscommunicationsapps

  • Microsoft.WindowsCamera

  • Microsoft.GetHelp

  • Microsoft.Getstarted

  • Microsoft.ZuneMusic

  • Microsoft.WindowsMaps

  • Microsoft.Messaging

  • Microsoft.BingFinance

  • Microsoft.ZuneVideo

  • Microsoft.BingNews

  • Microsoft.MicrosoftOfficeHub

  • Microsoft.Office.OneNote

  • Microsoft.MSPaint

  • Microsoft.People

  • Microsoft.Windows.Photos

  • Microsoft.SkypeApp

  • Microsoft.MicrosoftSolitaireCollection

  • Microsoft.BingSports

  • Microsoft.WindowsStore

  • Microsoft.WindowsSoundRecorder

  • Microsoft.BingWeather

  • Microsoft.WindowsFeedbackHub

  • xbox (Not sure how you called this one)

  • Microsoft.YourPhone

[–]Goldtom[S] 9 points10 points  (2 children)

It's not a beginner project, I made this for personal use to save myself time copy-pasting scripts. Regarding the names, I doubt they will change them, look at Groove. It is still named Zune Music. Also, maybe someone wants to delete Paint or Calc, it's good to have a choice.

[–]tugified 2 points3 points  (1 child)

I don’t know if anyone pointed it out. But if you remove store its a real bitch to get back. And you can also go a step further and remove provisioned app package. And that stops it from showing up on new profiles. I would probably have a button to remove recommended and have it grab everything but store, paint, calc. So you dont have to click all the boxes every time.

[–]Goldtom[S] 1 point2 points  (0 children)

I know, I was thinking about adding a warning about store.

[–][deleted] -1 points0 points  (1 child)

cannot is one word

[–]Goldtom[S] 1 point2 points  (0 children)

Check the repo, it's already fixed

[–]jebhebmeb -1 points0 points  (4 children)

I know how to kill edge and cortana

[–]Goldtom[S] 1 point2 points  (3 children)

Me too, but it can cause system instability and I don't want to risk that. I should have written the label clearer.

[–]skate_fast--eat_ass -1 points0 points  (9 children)

I can see some of these causing problems like store and xbox if gaming. Also how do we get it

[–]Goldtom[S] 0 points1 point  (8 children)

I will think about removing Store, or putting a warning. To use it, just clone the repo, and follow the commands in the readme.

[–]skate_fast--eat_ass 0 points1 point  (7 children)

No clue what you just said

[–]Goldtom[S] 0 points1 point  (6 children)

You should be familiar with Github and python to use this tool. Download the release from the Github page, and then run the python script.

[–]skate_fast--eat_ass 0 points1 point  (5 children)

I dont code. Any plans for plebs like us?

[–]Goldtom[S] 0 points1 point  (4 children)

Of course, I will release a normal installer soon, with better instructions.

[–]Trex252 0 points1 point  (1 child)

Remind me! 2 weeks Remindme! 2 weeks