SightRadardocs
API referenceCollections

Delete one photo's faceprints (soft by default, restorable)

Deletes the face vectors indexed from one photo (by the photoId you supplied at index time), without… (DELETE /v1/collections/{id}/photos/{photoId})

DELETE/v1/collections/{id}/photos/{photoId}
Auth
Bearer API key
Billing
free (0 credits).

Deletes the face vectors indexed from one photo (by the photoId you supplied at index time), without touching the rest of the collection. Synchronous and free. Idempotent — deleting an already-removed photo still returns 200.

Two modes, mirroring the collection delete:

  • Soft (default, no flag) — the faces are tagged deleted and drop out of search immediately, but the vectors survive the grace window so the delete can be undone with POST /v1/collections/{id}/photos/{photoId}/restore. This is the safe default: an accidental delete from your own automation is recoverable.
  • Immediate (?immediate=true) — the vectors are physically removed now. NOT restorable.

?compliance=true is an alias for immediate=true that additionally records the erasure as compliance-class for your own audit trail.

Example request

curl -X DELETE "https://api.sightradar.com/v1/collections/$ID/photos/$PHOTOID" \
  -H "Authorization: Bearer $SR_API_KEY"

Parameters

NameInTypeDescription
id requiredpathstringCollection id.
photoId requiredpathstringThe photoId supplied at index time.
immediatequerybooleanPhysically delete the vectors now instead of soft-deleting them. Not restorable.
compliancequerybooleanAlias for immediate=true, additionally recorded as a compliance-class erasure.

Response body

FieldTypeDescription
deletedboolean
collection_idstring
photo_idstring
mode"soft" | "immediate"Which delete mode was applied.
restorablebooleanTrue for a soft delete (undo via the restore endpoint); false for an immediate delete.

Status codes

StatusMeaning
200Faceprints deleted.
401Missing or invalid API key.
404Resource not found.
502Deletion service unavailable.
Last updated

On this page