Skip to content

DeleteFaces

Source: src/AWS/Rekognition/DeleteFaces.ts

Runtime binding for rekognition:DeleteFaces — delete faces from a face collection by face ID.

The binding takes no arguments and grants the function rekognition:DeleteFaces on * (Rekognition data-plane resources such as collections, users, and jobs are routinely created at runtime, so their identifiers are unknown at deploy time). Provide the implementation with Effect.provide(AWS.Rekognition.DeleteFacesHttp).

// init
const deleteFaces = yield* AWS.Rekognition.DeleteFaces();
// runtime
const result = yield* deleteFaces({
CollectionId: "tenant-42",
FaceIds: [faceId],
});
// result.DeletedFaces, result.UnsuccessfulFaceDeletions