title | description | author | localization_priority | ms.prod | doc_type |
---|---|---|---|---|---|
Delete printerShare |
Delete a printer share (unshare the associated printer). This action cannot be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer will need to discover and re-install it. |
braedenp-msft |
Normal |
universal-print |
apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Delete a printer share (unshare the associated printer). This action cannot be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer will need to discover and reinstall it.
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
To use the Universal Print service, the user or app's tenant must have an active Universal Print subscription, in addition to the permissions listed listed in the following table.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | PrinterShare.ReadWrite.All |
Delegated (personal Microsoft account) | Not Supported. |
Application | Not Supported. |
DELETE /print/shares/{id}
DELETE /print/printers/{id}/share
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Do not supply a request body for this method.
If successful, this method returns a 204 No Content
response code. It does not return anything in the response body.
The following is an example of the request.
DELETE https://graph.microsoft.com/beta/print/shares/{id}
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following is an example of the response.
HTTP/1.1 204 No Content