Skip to content

API reference > @kontsedal/olas-persist > ClearPersistedOptions

ClearPersistedOptions type ​

Options for clearPersisted(storage?, options). Pass a non-empty prefix, or all: true. With neither, the call throws.

Signature:

typescript
export type ClearPersistedOptions = {
  prefix?: string;
  all?: boolean;
  onError?: (err: unknown, key: string) => void;
};

Released under the MIT License.