Skip to content

Latest commit

 

History

History
104 lines (80 loc) · 3.54 KB

File metadata and controls

104 lines (80 loc) · 3.54 KB
title Delete departmentTemplate
description Delete a departmentTemplate object.
author sseth
ms.localizationpriority medium
ms.subservice security
doc_type apiPageType
ms.date 04/05/2024

Delete departmentTemplate

Namespace: microsoft.graph.security

[!INCLUDE beta-disclaimer]

Delete a departmentTemplate object.

[!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 /security/labels/departments/{departmentTemplateId}
DELETE /security/labels/retentionLabels/{retentionLabelId}/descriptors/departmentTemplate

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.

Examples

Request

The following example shows a request.

DELETE https://graph.microsoft.com/beta/security/labels/departments/f44dkle55-6baf-44ff-5dcc-08d8de97b1d5

[!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

Here's an example of the response.

HTTP/1.1 204 No Content