Skip to content

Latest commit

 

History

History
109 lines (81 loc) · 3.59 KB

File metadata and controls

109 lines (81 loc) · 3.59 KB
title Delete printConnector
description Delete (unregister) a printConnector.
author nilakhan
ms.localizationpriority medium
ms.subservice universal-print
doc_type apiPageType
ms.date 04/04/2024

Delete printConnector

Namespace: microsoft.graph

Delete (unregister) a printConnector.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

DELETE /print/connectors/{printConnectorId}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It doesn't 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

The following example shows a request.

DELETE https://graph.microsoft.com/v1.0/print/connectors/9953d245-3f6e-418c-a438-67f50e69a430

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content