How to Remove Programs with Delete Command Prompt

One of the the tasks you can do using command prompt is to completely uninstall every program in your computer. Of course it is far easier to use standard add/remove or special third-party uninstallers but in some rare cases there is no other way to uninstall program than through command prompt. For example when you have to boot into corrupted Windows with so called boot with command prompt. Here we are going to take a look at how to uninstall CCleaner using delete command prompt function.

delete programs via cmd
Open Start>run>cmd. Enter "cd %programfiles%" and press enter. Type "dir /p" without quotes. You will see the list of all your programs now. To delete-uninstall CCleaner type rd /s "CCleaner" and press "Y". This will permanently delete this program so be sure you know this is what you want.

You can delete any program using this method just replace the name with what you want to delete. Read also how to uninstall programs using command prompt.

Share/Save/Bookmark

27 Comments:

Thomas on April 18, 2009 2:24 PM said...

@Anonymous
Let say your account you want to delity is annonymous.
Open cmd and type in "net stat anonymous/delete". Press enter. Here anonymous represent account we want to delete but in your computer it will be something else I imagine. So just replace "anonymous" with account name you want to delete.

Tejaswi on April 18, 2009 3:27 PM said...

Hey Thomas... You should have kept a note that the symbol "%" Implies the Drive in which the Operating system is installed... It will be helpful for newbies...

Nice share buddy.. I uninstalled VideoLAN in my system in that fashion!

Thomas on April 18, 2009 3:42 PM said...

@Tejaswi
thanks for info. I did not think about that. Good that you mentioned.

Thomas on April 19, 2009 2:26 AM said...

This command is actually force deletition of every program. So if you use it, it will not just uninstall it but force-delete it. True it will leave all registry imputs, but it is meant to be used as/when nothing else works. You can that easily remove all registry imputs with a good registry cleaner such as Comodo system cleaner or any else.

tejaswi on April 19, 2009 3:14 AM said...

Yup... Absolutely true... It just deletes the installed file in the Program Files folder of the OS...

There is also some trick to uninstall programs which do not give an uninstaller... By getting the correct Registry Entry and entering the same in the Run command... Uninstall of a program can be done...

(psst..! I don't know how it is done exactly.. but i read it some where very long back..)

Thomas on April 19, 2009 4:23 AM said...

I know what you mean Tejaswi. Before posting this method I tried the original uninstallation method in cmd, but somehow it did not work out. maybe I forgot the exact command....
so now I chose this method.

Sajid on April 19, 2009 5:09 AM said...

nice post about OS and good ideas for delete some files with using cmd.

Thomas on April 19, 2009 6:16 AM said...

Thanks Sajid. Recommend us to your friends please to help us grow.

hack on April 20, 2009 12:48 PM said...

Thanks, great post

Thomas on May 7, 2009 3:07 AM said...

@Home Appliance Deals
Thank you for compliments

Anonymous said...

i tried it but when i look in add/remove programs is still there and it also show on the all programs menu..it just deleted the application folder on the program files

Thomas on June 15, 2009 1:55 PM said...

Yes. This method is forced deletition of every program you choose but it leaves registry leftovers behind. You can remove it from add/remove by choosing so it is not a big deal. But for true uninstallation from command prompt use this method here.



www.pcterritory.net/uninstall programs via command prompt

Anonymous said...

thnx a lot...it worked...cheers ;)

Techie Inspire on September 15, 2009 12:40 PM said...

The best way is to remove using some uninstaller or the default option provided by window

Tomaz on September 15, 2009 3:05 PM said...

@Techie Inspire
This is actually not uninstalling but is force deletion. This is extremely useful when all other methods of uninstalling fail, be because of spyware, corrupted application's uninstaller or software without provided uninstaller.

dennis on September 24, 2009 8:14 PM said...

hi, what if i choose y, then the message says Access denied??

Tomaz on September 25, 2009 2:16 AM said...

@dennis
Maybe you forgot to close the program before trying to delete it.
Another option is that program is either system-protected by operating system and refuses to be deleted (important part of operating system) or the program is being protected be self-termination shield to protect itself from being deleted by malware. Majority of security products (antivirus, firewall) have that shield. Again...try to exit the program you want to delete and than go on with deleting.

let me know how it works and what is the program you wanna get rid of

pcterritory

Anonymous said...

i m glad to see the page

Akram on October 16, 2010 12:53 AM said...

hey i cant able to delete "ms office professional plus 2010" from my system,,i am using windows 7 operating system,
i am getting an error message that access is denied,,please help me,,,,

Anonymous said...

thank you so much

Anonymous said...

I can't bypass a self termination shield... any way to disable it do that I can delete it?

roy said...

Wow finally i've found a simple but very useful tutorial concerning how to use the command prompt to solve the common problems in any computer..,Great Post...thanks a lot guys.

Anonymous said...

i have window 7 starter.
typed cd%programfiles%...and
syntax is incorrect..

any helps?
k.

Mike said...

Tryimg to get rid of avg 9 and its saying not found

Anonymous said...

yer i have the same problem, I installed McAfee 2010 on my 7 year old PC as a quick try and fix/remove a virus I got, and as it was scanning the computer crashed, blue screen, and now it will not reload I think perhaps it is strangling my system even more new core i5 work laptop struggles with this mcAfee antivirus (only used due to work regulations)... is there a way around this access denied self termination shield, i am not familiar with dos, but can write in unix unfortunately, is there a su cmd

Anonymous said...

for window 7 place a space between cd and %programfiles%

Anonymous said...

i have problem to remove omud application and Massage i am getting as below could you please help me?

C:\user\admin\sc query omud

SERVICE_NAME: omud
TYPE :10 WIN32_OWN_PROCESS
STATE :1 STOPPED
WIN32_EXIT_CODE :1077 <0x435>
SERVICE_EXIT_CODE :0 <0x0>
CHECKPOINT :0x0
WAIT_HINT :0x0

Post a Comment

 

Copyright © pcterritory.net 2009 - 2010