Execution Flow
Deletion is file-based, not registry-based — there's no MSI product to uninstall.
-RemoveClassPath is off by default because the machine-wide CLASSPATH environment variable is sometimes managed centrally by other tooling; only enable it if this function is the sole owner of that entry.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| -RemoveClassPath | Switch | Optional | Also strips any mssql-jdbc entry from the machine-wide CLASSPATH environment variable. Default: off. |
Return Value
Returns a single PSCustomObject with: Status (Uninstalled or NotFound), Message (includes the list of removed JAR paths).
Examples
Example 1 — Remove the JDBC driver JAR(s)
Uninstall-sqmJdbcDriverExample 2 — Also clean up the CLASSPATH entry
Uninstall-sqmJdbcDriver -RemoveClassPath