Skip to main content

Delete a Person

Endpoint

DELETE https://api.verifik.co/v2/face-recognition/persons/{id}

Removes a person (and associated face data) from the system. With optional query collection, the API may remove the person from that collection only instead of deleting the entire record when other collections remain.

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params

NameTypeRequiredDescription
idstringYesPerson ID in the URL path (/persons/{id}).
collectionstringNoIf set, may detach the person from this collection only (behavior when other collections exist is server-defined).

Request

const fetch = require("node-fetch");

async function run() {
const id = "person_123456789";
const res = await fetch(`https://api.verifik.co/v2/face-recognition/persons/${id}`, {
method: "DELETE",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(await res.json());
}

run();

Response

{
"id": "…",
"data": {
"_id": "person_123456789"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "…"
}
}

Notes

  • Permanent deletion: when the full person is removed, face encodings and related enrollment data are deleted; this cannot be undone.
  • collection query: use when you only need to remove membership from one collection; if the person still belongs to others, the record may remain.
  • 404 if {id} does not exist or is outside your client scope.