> ## Documentation Index
> Fetch the complete documentation index at: https://docs.huemn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Collections and deletion

Collections isolate face indexes inside the authenticated tenant and processing purpose. The server chooses tenant, purpose and model version. Clients cannot override those values. Collection creation stores metadata; it does not enroll faces.

Use one collection per end customer or tenant. Collections are free logical containers, like AWS Rekognition collections, and the server keeps each one isolated. Face `metadata` such as `{ "tenantId": "t_123" }` is returned with results but is not searchable or filterable, so it cannot separate customers on its own.

The private TypeScript source SDK exposes `createCollection`, `listCollections`, `getCollection`, `deleteCollection` and `getOperation`. Supply a runtime API key with the corresponding collection or operation scope. Never put credentials in URLs or committed source.

```typescript theme={null}
const created = await client.createCollection({ name: "Authorized pilot", retentionDays: 30 });
const page = await client.listCollections({ limit: 20 });
const next = page.nextCursor
  ? await client.listCollections({ after: page.nextCursor, limit: 20 })
  : null;
const deletion = await client.deleteCollection(created.collection.id);
const operation = await client.getOperation(deletion.operation.id);
```

Collection names must be nonempty and at most 128 characters. Avoid personal data in names. Omit `retentionDays` or pass null for faces that persist until deleted, unless an individual face has an expiry. A positive `retentionDays` sets a finite retention period; there is no product retention cap, but the value and resulting expiry must fit the supported integer and date ranges. The response uses null `retentionDays` for a persistent collection. A page contains `collections` and a UUID `nextCursor` or `null`. Pagination limits are 1–100, default 20.

`DELETE /v1/collections/{id}` returns HTTP 202 and an operation. Submission hides the collection from normal access. Physical erasure is asynchronous: `pending` and `running` do not establish completion. Check `GET /v1/operations/{id}` for the current state (`pending`, `running`, `completed` or `failed`). The SDK does not automatically retry or poll. A network timeout may leave the submission outcome unknown; inspect or retry the same collection deletion to recover its operation.

Use **Collections** in the [dashboard](https://platform.huemn.com/) to create or inspect a collection, then enroll, search and delete faces within it. These operations use your signed-in session and selected organization, environment and purpose; no manually pasted API key is required. The deletion checkbox confirms operator intent, not data-subject consent. Follow deletion in **Operations**. Access remains operator-controlled; the implemented dashboard is not proof of hosted availability.

Collection metadata and operation reads and collection deletion do not consume inference admission credits. Zero balance does not block deletion or status access, subject to current authentication, scope and service availability. Accepted deletion still requires asynchronous completion evidence. See [admission semantics](https://docs.huemn.com/quickstart.md) for the separately charged image operations.

## Face storage pricing

Planned price: \$0.01 per 1,000 stored face-months, prorated. Storage billing is not active; no storage credits are deducted yet. Catalog version: `2026-12-02-storage-preview-1`. See the [pricing page](https://www.huemn.com/pricing/) for request tiers.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.