Skip to content

Latest commit

 

History

History
104 lines (78 loc) · 3.42 KB

File metadata and controls

104 lines (78 loc) · 3.42 KB
title Delete chat
description Delete a chat object.
author sthapliyal
ms.subservice teams
doc_type apiPageType
ms.localizationpriority medium
ms.date 04/05/2024

Delete chat

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins.

Note: This delete operation is not supported for non-admin users.

[!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 /chats/{chat-id}

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 action returns a 204 No Content response code.

Examples

Request

DELETE https://graph.microsoft.com/beta/chats/19:7d898072-792c-4006-bb10-5ca9f2590649_8ea0e38b-efb3-4757-924a-5f94061cf8c2@unq.gbl.spaces

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