Description
Uninstalls package from unit
Syntax
CMS_UninstallPackageFromUnit(sID as string) As Boolean
[bool]CMS_UninstallPackageFromUnit -packageid <string>
Parameters
sID (String)
ID of the package (JobId from the JOB table)
Return value
Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
VBScript
If bStatus Then bStatus = CMS_UninstallPackageFromUnitById("126") |
PowerShell
if (CMS_UninstallPackageFromUnitById '126') { $cs.Job_WriteLog("Uninstall", "Package (126) will be uninstalled") } |