---
title: "Estimate device evidence deletion"
method: POST
path: "/vis/v2/orgs/{orgId}/devices/delete/estimate"
tags: ["Device"]
---

# Estimate device evidence deletion

`POST /vis/v2/orgs/{orgId}/devices/delete/estimate`

## Request

- Base URL: `https://api.flexera.com`
- URL: `https://api.flexera.com/vis/v2/orgs/{orgId}/devices/delete/estimate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/flexera/apis/it-visibility-api/docs/vis/v2/orgs/:orgId/devices/delete/estimate/post.ts> (a function with typed inputs; its response is checked against the schema)

Estimates the device evidence that would be deleted for the specified device IDs, grouped by datasource.

A datasource is included if it matches any datasource selector. If no datasource selectors are provided, evidence from every datasource associated with the specified devices is included.

The estimate reflects the inventory available when the request is made. Because inventory may change, it does not guarantee that a later request will delete the same evidence.

### Client guidance
* Submit no more than 500 unique device IDs per request. This recommendation is not enforced, but larger requests provide no processing benefit and may increase latency or timeout risk.
* Split larger workloads into batches and process them sequentially. Use the same datasource selectors for every batch in one logical operation.
* There is currently no specific concurrency limit or hard cap in place. We recommend that customers test and tune their request volume based on their network conditions, performance requirements, and business needs.
* The API does not automatically retry failed estimate requests. Clients may retry transient failures using exponential backoff with jitter.

## Path parameters

- `orgId` integer, required: The unique identifier for the organization

## Request body

- EstimateDeleteRequestBody
  - `datasourceSelectors` DeviceDatasourceSelection[]: Optional datasource selectors. A datasource is included when it matches any selector. Omit this attribute to include all datasources associated with the specified devices.
    - `field` 'id' | 'name' | 'type', required: Datasource property to compare: id for the datasource ID, name for the datasource name, or type for the datasource type
    - `value` string, required: Exact value that the selected datasource property must match
  - `deviceIds` string[], required: Device IDs whose evidence should be included. Send no more than 500 unique IDs per request; this recommendation is not enforced by the API.

## Response `200`

OK response.

- FlexeraVisDeviceDeletionSummary[]
  - `count` integer, required: The number of devices whose evidence is selected
  - `datasourceId` string, required: The ID of the datasource
  - `datasourceName` string, required: The name of the datasource
  - `datasourceType` string, required: The type of the datasource
  - `kind` 'vis:device-deletion-summary', required: The resource's type

## Other responses

- `400`: bad_request: Bad Request response.
- `401`: unauthorized: Unauthorized response.
- `403`: forbidden: Forbidden response.
- `429`: too_many_requests: Too Many Requests response.
- `500`: internal_error: Internal Server Error response.
- `502`: bad_gateway: Bad Gateway response.

## Changes

- **2026-11-06** `cf08a0af5097`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/flexera/apis/it-visibility-api/changes/vis/v2/orgs/:orgId/devices/delete/estimate/post.md)

---

[API](https://skmtc.dev/flexera/apis/it-visibility-api.md) - [All operations](https://skmtc.dev/flexera/apis/it-visibility-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flexera/apis/it-visibility-api/revisions/cf08a0af5097?raw)
