Skip to content

Latest commit

 

History

History
93 lines (68 loc) · 2.79 KB

File metadata and controls

93 lines (68 loc) · 2.79 KB
title Remove agentInstance from agentCollection
description Remove an agentInstance object from an agentCollection.
author jasondou
ms.date 11/06/2025
ms.localizationpriority medium
ms.subservice entra-id
doc_type apiPageType

Remove agentInstance from agentCollection

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Remove an agentInstance object from an agentCollection.

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]

Important

In addition to the permissions listed in the preceding table, the following lesser-privileged delegated and application permissions scoped to the special collections are supported for this API:

  • AgentCollection.ReadWrite.Global for Global collection
  • AgentCollection.ReadWrite.Quarantined for Quarantined collection

[!INCLUDE rbac-agentregistry-apis]

HTTP request

DELETE /agentRegistry/agentInstances/{agentInstanceId}/collections/{agentCollectionId}/members/{id}/$ref

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/agentRegistry/agentInstances/{agentInstanceId}/collections/{agentCollectionId}/members/{id}/$ref

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


Response

The following example shows the response.

HTTP/1.1 204 No Content