Delete an asset
Delete an asset.
Soft-deletes the asset and clears what would otherwise dangle off it -- scope pivots, network-service links, draft findings and the stored attachment -- through :class:DeleteAssetWorkflow. Submitted findings and scan-asset snapshots are kept. Calling AssetService.soft_delete here instead would flip the asset's own flag and leave every dependent behind.
Args: asset_id (int): Primary key of the asset. db (AsyncSession): Request-scoped database session. context (ActiveContext): Resolved caller identity and scope.
Returns: SuccessResponse: The legacy delete envelope, echoing the removed id.
Raises: NotFoundError: No such asset is visible to the caller.
Request
- Base URLhttps://api.ethiack.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Path parameters
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.