---
title: "Delete Asset"
method: DELETE
path: "/v1/assets/{asset_id}"
tags: ["Assets"]
---

# Delete Asset

`DELETE /v1/assets/{asset_id}`

## Request

- Base URL: `https://api.pinbridge.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pinbridge.io/v1/assets/{asset_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Delete an asset. Returns requires_confirmation=True while it is in use.

In use means referenced by a pin or by a scheduled pin that has not run yet;
`referenced_pin_count` counts both. With `confirm=true` the asset is deleted
anyway: pins keep their record without it, and pending schedules lose it, so
an unpublished pin or schedule that used it fails to publish.

## Path parameters

- `asset_id` string, uuid, required

## Query parameters

- `confirm` boolean

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- AssetDeleteResponse: Response for a single asset deletion.
  - `deleted` boolean, required
  - `requires_confirmation` boolean, required
  - `referenced_pin_count` integer, required: Pins plus scheduled pins that have not run yet using this asset.
  - `freed_bytes` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pinbridge/apis/pinbridge-api.md) · [All operations](https://skmtc.dev/pinbridge/apis/pinbridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pinbridge/apis/pinbridge-api/revisions/b17603589d01?raw)
