| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Purge (delete) the unused imported snapshot from the Windows 365 service-managed storage account.
[!INCLUDE national-cloud-support]
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]
POST /deviceManagement/virtualEndpoint/snapshots/purgeImportedSnapshot| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
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. |
If successful, this method returns a 204 No Content response code.
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]
The following example shows the response.
HTTP/1.1 204 No Content