Delete face data stored in the SightRadar face recognition API and confirm it is gone. Use when the user needs to remove a person's selfie or photos, handle a GDPR, CCPA or BIPA erasure or "right to be forgotten" request, delete an event or collection, undo an accidental delete, set up retention clean-up, or prove that face data was erased.
Capabilities
Delete a collection
Erasure runs in the background
Delete one photo's faces
Delete a person's selfies
These are permanent and verified: a 200 means no matching selfie remains
Errors
Getting started
Full instructionsExample command
Look before deleting (free)
curl -s "$B/v1/collections" -H "$AUTH" # all collectionsInstructions: SKILL.mdv1.0.0
Face data deletion
SightRadar stores faceprints, never the photos. Faceprints sit in three places, each with its own delete. All deletes are free.
| What | Call | Default | Undo |
|---|---|---|---|
| A whole collection (event, library) | DELETE /v1/collections/{id} |
soft | POST /v1/collections/{id}/restore |
| The faces indexed from one photo | DELETE /v1/collections/{id}/photos/{photoId} |
soft | POST /v1/collections/{id}/photos/{photoId}/restore |
| One registered selfie | DELETE /v1/collections/{id}/selfies/{selfieId} |
permanent | none |
| Every selfie of one user | DELETE /v1/collections/{id}/users/{userId} |
permanent | none |
Soft means the data stops being served at once and is erased after a grace window; until then it can be restored. Permanent means the faceprints are removed before the call returns.
Rules for the agent
- Deleting is the one thing here that cannot always be undone. Name exactly what will be deleted and get a clear yes from the user before any permanent delete (
?immediate=true,?compliance=true, selfie and user deletes). - Prefer the soft default unless the user asked for erasure.
- Key:
export SIGHTRADAR_API_KEY="frs_...". Never print or commit it. If it is missing, ask the user to set it; do not ask them to paste it in chat.
B="https://api.sightradar.com"; AUTH="Authorization: Bearer $SIGHTRADAR_API_KEY"
Look before deleting (free)
curl -s "$B/v1/collections" -H "$AUTH" # all collections
curl -s "$B/v1/collections/event-2026" -H "$AUTH" # photo_count, face_count, selfie_count
Delete a collection
curl -s -X DELETE "$B/v1/collections/event-2026" -H "$AUTH"
# 202 {"status":"deletion_pending","mode":"soft","restorable":true,"purge_after":"..."}
curl -s -X POST "$B/v1/collections/event-2026/restore" -H "$AUTH" # undo, any time before purge_after
curl -s -X DELETE "$B/v1/collections/event-2026?immediate=true" -H "$AUTH" # erase now, not restorable
curl -s -X DELETE "$B/v1/collections/event-2026?compliance=true" -H "$AUTH" # same, recorded as a compliance erasure
Erasure runs in the background. Confirm it finished:
curl -s "$B/v1/collections/event-2026/deletion" -H "$AUTH"
# {"phase":"completed","verified_zero":true,"deletion_class":"compliance","completed_at":"..."}
The data is gone when phase is completed and verified_zero is true. Poll every few seconds until then. phase is one of not_deleting, deletion_pending, deleting, completed, blocked. If it stays blocked, tell the user and point them to [email protected]. After completion the same id can be started again, empty, with POST /v1/collections/{id}/recreate.
Delete one photo's faces
curl -s -X DELETE "$B/v1/collections/event-2026/photos/IMG_0012" -H "$AUTH"
# {"deleted":true,"photo_id":"IMG_0012","mode":"soft","restorable":true,"found":true}
curl -s -X POST "$B/v1/collections/event-2026/photos/IMG_0012/restore" -H "$AUTH" # undo
curl -s -X DELETE "$B/v1/collections/event-2026/photos/IMG_0012?immediate=true" -H "$AUTH" # permanent
photoId is the id passed when the photo was indexed. URL-encode it if it contains spaces or other special characters. An id that contains / cannot be addressed by this route, even encoded: delete the collection instead, or index with slash-free ids. found: false means that photo had no faces in the collection. The call is safe to repeat.
Delete a person's selfies
curl -s -X DELETE "$B/v1/collections/event-2026/users/u_42" -H "$AUTH" # every selfie of user u_42
# {"deleted_selfie_ids":["s1"],"deleted_count":1}
curl -s -X DELETE "$B/v1/collections/event-2026/selfies/s1" -H "$AUTH" # one selfie
curl -s -X DELETE "$B/v1/collections/event-2026/selfies/s1?userId=u_42" -H "$AUTH" # only that user's copy
These are permanent and verified: a 200 means no matching selfie remains. A 503 means one is still stored; retry the same call. An unknown id returns 200 with nothing deleted. Add ?compliance=true to record the delete as a compliance erasure.
Handling an erasure request for one person
A person's data can be in two forms, and a full erasure covers both:
- Their selfies:
DELETE /v1/collections/{id}/users/{userId}in every collection where they registered. - Their face in indexed photos: SightRadar keeps no link between a photo face and a user, so first find the photos, then delete them.
- Before deleting the selfie, search the collection with it (see the
face-searchskill) to list thephoto_ids the person appears in. Have the user confirm the list, because a search can include look-alikes. - Delete each confirmed photo with
DELETE /v1/collections/{id}/photos/{photoId}?compliance=true. This removes every face indexed from that photo, including other people's.
- Before deleting the selfie, search the collection with it (see the
- Record what was deleted and when: the ids, the timestamps, and the responses. That record is the user's evidence.
The user's own copies of the images, backups and logs are outside the API. Remind them those need handling too. This skill covers the mechanics; whether and when a request must be honoured is a legal question for the user.
In code
# pip install sightradar
from sightradar import SightRadar
sr = SightRadar() # reads SIGHTRADAR_API_KEY
sr.delete_user_selfies("event-2026", "u_42")
sr.delete_photo("event-2026", "IMG_0012") # soft; sr.restore_photo(...) undoes it
sr.delete_collection("event-2026", compliance=True) # permanent
print(sr.deletion_status("event-2026").erased) # True when completed and verified
Errors
401 bad key. 403 the key cannot delete in this account. 404 collection not found. 409 the collection is already being deleted, or a restore came after the purge started. 503 on a selfie delete: retry. Full docs: https://sightradar.com/llms.txt
Examples
Prompt
Please delete all face data from the event-2026 collection but keep the option to restore it if needed.Output
I will perform a soft delete of the entire event-2026 collection. This stops serving the faceprints immediately and allows restoration before final purge. Executing DELETE /v1/collections/event-2026 with default soft mode. You can undo this anytime before purge by calling POST /v1/collections/event-2026/restore. After deletion, I will confirm completion by polling /v1/collections/event-2026/deletion until phase is completed and verified_zero is true.Prompt
I need to permanently erase all selfies of user u_42 from collection event-2026 for a GDPR compliance request.Output
This is a permanent deletion with no undo. Please confirm you want to permanently delete every selfie of user u_42 from collection event-2026 for compliance. Upon confirmation, I will call DELETE /v1/collections/event-2026/users/u_42 with no soft mode to erase immediately. Afterward, I will verify completion by checking /v1/collections/event-2026/deletion to ensure all face data for that user is fully removed.Explore more skills
Browse all- Senior FrontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle…
- UI Design SystemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens…
- Founder ConsumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target…
- Frontend DesignGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with…
- Senior BackendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load…
- Self Improving AgentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its…
Security
Reviews (0)
Frequently asked questions about face-data-deletion
What does the face-data-deletion skill do?
Delete face data stored in the SightRadar face recognition API and confirm it is gone. Use when the user needs to remove a person's selfie or photos, handle a GDPR, CCPA or BIPA erasure or "right to be forgotten" request, delete an event or collection, undo an accidental delete, set up retention clean-up, or prove that face data was erased. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the face-data-deletion skill?
Run `npx @skills-hub-ai/cli install face-data-deletion` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/face-data-deletion/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does face-data-deletion work with?
face-data-deletion runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the face-data-deletion skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use face-data-deletion after installing it?
In Claude Code, type `/face-data-deletion` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the face-data-deletion skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/face-data-deletion)<a href="https://skills-hub.ai/skills/face-data-deletion"><img src="https://skills-hub.ai/api/badges/skill/face-data-deletion" alt="Install on Skills Hub"></a>More options in the badge docs.