Skip to content

Latest commit

 

History

History
109 lines (76 loc) · 3.36 KB

File metadata and controls

109 lines (76 loc) · 3.36 KB
author swapnil1993
title Delete contentType
description Delete a content type from a SharePoint list or a site.
ms.localizationpriority medium
doc_type apiPageType
ms.subservice sharepoint
ms.date 04/04/2024

Delete contentType

Namespace: microsoft.graph

Remove a content type from a list or a site.

[!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 /sites/{site-id}/contentTypes/{contentType-id}
DELETE /sites/{site-id}/lists/{list-id}/contentTypes/{contentType-id}

Request headers

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

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a 204 No Content response code.

Example

Request

DELETE https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/{contentType-id}

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

HTTP/1.1 204 No Content