Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Inventory Api → Delete Api Assets Inventory Batch

AI-generated

Summary

Deletes multiple API assets from the Inventory in a single batch request.

Inputs

  • force — If checked (default), the API will force delete resources, even if they are protected or currently in use. If unchecked, the API may return a conflict error for protected resources.
  • resources — A JSON array containing the list of resource IDs (or data objects) to delete. Defaults to an array containing a null value.
  • requestOptions — Optional request configuration including batching settings, proxy, timeout, and SSL options.

Output shape

A single execution item containing the API response data.

The API returns the result of the batch deletion operation. If the 'force' option is not checked, the API may reject deletion of protected resources, resulting in an error in the response.

Examples

Example 1: Force delete a list of asset IDs to ensure removal regardless of their status.

Set 'force' to true and provide a JSON array of IDs in the 'resources' field.

Example 2: Delete assets with standard validation (API will reject protected items).

Leave 'force' unchecked and provide a JSON array of IDs in the 'resources' field.

Links

Discussion