Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 3.08 KB

printershare-delete.md

File metadata and controls

90 lines (73 loc) · 3.08 KB
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

Delete printerShare

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.

Permissions

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.

HTTP request

DELETE /print/shares/{id}
DELETE /print/printers/{id}/share

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Example

Request

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]


Response

The following is an example of the response.

HTTP/1.1 204 No Content