Skip to content

Latest commit

 

History

History
118 lines (87 loc) · 4.04 KB

File metadata and controls

118 lines (87 loc) · 4.04 KB
title cloudPCSnapshot: purgeImportedSnapshot
description Purge (delete) the unused imported snapshot from the Windows 365 service-managed storage account.
author hyc3z
ms.localizationpriority medium
ms.subservice cloud-pc
doc_type apiPageType
ms.date 10/10/2025

cloudPCSnapshot: purgeImportedSnapshot

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Purge (delete) the unused imported snapshot from the Windows 365 service-managed storage account.

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

POST /deviceManagement/virtualEndpoint/snapshots/purgeImportedSnapshot

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the parameters.

The following table shows the parameters that can be used with this method.

Parameter Type Description
snapshotIds String collection The list of unique identifiers for imported snapshots.

Response

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

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/snapshots/purgeImportedSnapshot
Content-Type: application/json

{
  "snapshotIds": [
    "7e8c3054-bda1-4e37-81c5-7d1b080a8849",
    "715c8075-6892-42f3-9550-40b4b48e13d2"
  ]
}

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