CMS\_UninstallPackageFromUnitById
Description
Section titled “Description”Uninstalls package from unit
Syntax
Section titled “Syntax”:vb: CMS_UninstallPackageFromUnit(sID as string) As Boolean
:ps: [bool]CMS_UninstallPackageFromUnit -packageid <string>
Parameters
Section titled “Parameters”sID (String)
ID of the package (JobId from the JOB table)
Return value
Section titled “Return value”:vb: Boolean, TRUE if function completed successfully.
:ps: Boolean, TRUE if function completed successfully.
Example
Section titled “Example”:vb: VBScript
Section titled “:vb: VBScript”vbnet<br/>If bStatus Then bStatus = CMS_UninstallPackageFromUnitById("126")<br/> |
:ps: PowerShell
Section titled “:ps: PowerShell”powershell<br/>if (CMS_UninstallPackageFromUnitById '126') {<br/> $cs.Job_WriteLog("Uninstall", "Package (126) will be uninstalled")<br/>}<br/> |
Related functions
Section titled “Related functions”