Skip to content

Instantly share code, notes, and snippets.

@symisc
Last active June 25, 2022 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save symisc/7b366f4c91345847b3276eec7ff66b0d to your computer and use it in GitHub Desktop.
Save symisc/7b366f4c91345847b3276eec7ff66b0d to your computer and use it in GitHub Desktop.
Programmtically delete (total purge) a Facial ID, its associated payload data, and biometrics hash from a given FACEIO application - https://faceio.net/facialid
import requests
import json
# Programmtically delete (total purge) a Facial ID, its associated payload data,
# and biometric hash from a given FACEIO application - Refer to https://faceio.net/facialid for additional information
req = requests.get('https://api.faceio.net/deletefacialid',params={
"fid":"FACIAL_ID", # Target Facial ID to purge from this FACEIO application. Find out more information about the Facial ID on https://faceio.net/facialid
"key": "FACEIO_APP_API_KEY" # Your FACEIO Application API Key. Retrieve this key from the Application Manager on the console at: https://console.faceio.net
})
reply = req.json()
if reply['status'] != 200:
print (reply['error'])
exit()
# Success
print("Given Facial ID, payload data, and Biometrics hash purged from this application")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment