Skip to main content

Delete a Person

Delete a person record from the facial recognition system. This operation permanently removes the person and all associated data including face encodings.

Endpoint

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

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Parameters

NameTypeRequiredDescription
idstringYesThe unique identifier of the person to delete

Request

import axios from 'axios';

const personId = "person_123456789";
const options = {
method: 'DELETE',
url: `https://api.verifik.co/v2/face-recognition/persons/${personId}`,
headers: {
Accept: 'application/json',
Authorization: 'Bearer <your_token>'
}
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}

Response

{
"success": true,
"message": "Person deleted successfully",
"data": {
"_id": "person_123456789"
}
}

Features

  • Person Deletion: Permanently delete person records
  • Data Cleanup: Removes all associated face encodings and data
  • Collection Cleanup: Automatically removes person from collections
  • Structured Response: Organized data format for easy integration
  • Multiple Programming Languages: Support for JavaScript, Python, PHP, and Swift
  • Error Handling: Comprehensive error responses for various scenarios

Notes

  • Permanent Action: This operation cannot be undone. All person data will be permanently deleted.
  • Collection Impact: The person will be automatically removed from all associated collections.
  • Face Encodings: All face encodings associated with this person will be deleted.