Uninstallation and Retraction of a Solution in
SharePoint 2010
Please follow the below commands to retrace\Uninstall
Solution as per Environment.
Using STSADM:
stsadm -o retractsolution -name solutionName.wsp -immediate
stsadm -o deletesolution -name solutionName.wsp
Using PowerShell:
Uninstall-SPSolution -identity solutionName.wsp
Remove-SPSolution -identity solutionName.wsp