Skip to main content

Delete one of a stream's snapshots

DELETE 

/program/api/v2/streams/:id/snapshots/:key

Deletes the snapshot object from the bucket it was captured to: managed storage through the project's managed key, the project's own bucket through its connection's credentials. The file is gone, not hidden; ask the user to confirm first. Idempotent on an object that is already absent.

400 invalid_key when the key is not under the stream's snapshots folder; 404 if the stream is unknown to the token's project or the project has no snapshots storage; 502 storage_unreachable when the bucket refuses the delete.

Generate JWT

Request​

Responses​

Snapshot deleted (or already absent)

The key is not one of this stream's snapshots (invalid_key)

Forbidden

Stream not found, or no snapshots storage (stream_not_found / storage_not_configured)

Internal Server Error

The bucket refused the delete (storage_unreachable)