Table of Contents

Method DeleteAllAsync

Namespace
Oscova.Agents.Memory
Assembly
Oscova.Agents.dll

DeleteAllAsync(string?, bool, CancellationToken)

Deletes every concept outside an excluded directory and rebuilds the entry index once.

public Task<string> DeleteAllAsync(string? excludedDirectory, bool snapshot, CancellationToken ct = default)

Parameters

excludedDirectory string?

Directory kept untouched, such as daily memory, or null for the whole store.

snapshot bool

Replaces the sibling .bak folder with the store's files before deleting.

ct CancellationToken

Cancels the wait for the store gate.

Returns

Task<string>