Undocumented stsadm command “stsadm –o uninstall”

Unfortunately I discovered an undocumented stsadm command today; having gotten into the habit of typing in “stsadm –o commandname” to get the list of parameters needed, I got stung by entering the wrong command name.

I was looking for the parameters to “UninstallFeature”, but I typed only in “uninstall”:

“stsadm –o uninstall”

You should think that this is not a command so it doesn’t matter, even if you type in “stsadm –help” this command will not be listed. OK, I’ll admit my approach to typing in these commands is probably not the best way around, but that is not really the point.

The point is that this command is undocumented, it doesn’t take any arguments, and it will start uninstalling SharePoint without even a warning. So will have to do some manual cleanup and then run the configuration wizard again…

Hope this can warn you before you try this out and thanks to Roy for asking me about uninstalling features, before the coffee had time to kick in.

Links to related content:



Comments (3)

  1. David Lozzi says:

    Yup, we just did it here. Meant to do uninstallfeature and forgot the feature…. What a lovely piece of functionality!

  2. Loza says:

    Just did this even though I knew of this already, as I ran this command a few months back. Anyone know if they remove this nasty little command in SharePoint 2010?

  3. Todd Hiltz says:

    Yup me too…glad I am on a dev box, thats all I can say…