Delete printConnector

Namespace: microsoft.graph

Important

Microsoft is offering usage of the cloud printing APIs to manage Universal Print at no charge and there are no foreseeable plans to charge for the use of these APIs.

Delete (unregister) a printConnector.

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 in the following table. The signed in user must be a Printer Administrator.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) PrintConnector.ReadWrite.All
Delegated (personal Microsoft account) Not Supported.
Application Not Supported.

HTTP request

DELETE /print/connectors/{printConnectorId}

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.

Error conditions and messages

Scenario Method Code Message
User attempts to delete a connector that has one or more printers registered DELETE 409 Before deleting the connector, please unregister the associated printers.

Examples

Request

DELETE https://graph.microsoft.com/v1.0/print/connectors/{printConnectorId}

Response

HTTP/1.1 204 No Content