Delete uploaded asset
delete_assetDelete an uploaded image or video from PinBridge storage. Irreversible; confirm first.
Use to clean up media from upload_asset that is no longer needed; its
public_url stops working. Published pins keep their image on Pinterest.
With confirm=true, a pin or scheduled pin that has not published yet
and uses the asset fails to publish, so tell the user which ones first.
Returns asset_id, deleted, requires_confirmation, referenced_pin_count
(pins plus scheduled pins that have not run yet) and freed_bytes. With
confirm=false and the asset still in use, nothing is deleted: deleted
is false and requires_confirmation true.
Fails with not_found for an unknown id and insufficient_scope without
the destructive scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false (default) deletes nothing while pins or pending scheduled pins use the asset and reports how many; true deletes it anyway and detaches it. | |
| asset_id | Yes | UUID of the uploaded asset, from upload_asset. |