connection (DELETE)
{server}/api/v1/printer/connection/{shareName}
Description
Removes a printer connection for the current user. It does not delete any printer driver files.
This is a blocking or synchronous function and might not return immediately. How quickly this function returns depends on run-time factors such as network status, print server configuration, and printer driver implementation. Calling this function could make the ScriptX.Services Server appear to be unresponsive temporarily.
Applies to:
- ScriptX.Services for Windows PC 2.19 and later.
Request parameters
shareName (string, required)
- shareName (string, required)
-
Backslash characters in the network printer name may be custom encoded if required:
theShareName.replace(/\\/g, "||");
Response model
string
- If the connection is removed the literal; "connection {shareName} removed" is returned.