Deletesolution: Stsadm operation (Windows SharePoint Services)

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2007-04-20

Operation name: Deletesolution

Description

Removes a Windows SharePoint Services Solution Package (*.wsp) from the solution store. The user who executes this command must have privileges to remove the solution. This command supports removing only one file from the solution store at a time.

If an administrator cannot remove a currently deployed solution, the following message will be displayed:

“The solution <file name> is deployed on the farm. Use the retractsolution operation to reverse the deployment. You can also use the -override parameter to forcibly remove the solution, but you will not be able to retract the solution deployment.”

If a solution has language packs that have been deployed, the administrator cannot remove the solution. The following message will be displayed:

"The solution <file name> has one or more language packs deployed in the farm. Use the retractsolution operation to reverse the deployment of these language packs."

Syntax

stsadm -o deletesolution

**   -name <name>**

**\[-override\]**

**\[-lcid\] \<language\>**

Parameters

Parameter

Value

Required?

Description

name

A valid name of the solution in the solution store, such as “SampleSolution.wsp”

Yes

Name of the solution

override

<none>

No

Specifying this parameter forcibly removes the solution from the store even if it is deployed. However, note that the solution deployment is not retracted.

lcid

A valid language locale, such as "1033" for English

No

Language locale ID