Skip to main content
Module

x/earthstar/src/entries/npm.ts>MultiformatReplica#overwriteAllDocsByAuthor

Storage for private, distributed, offline-first applications.
Latest
method MultiformatReplica.prototype.overwriteAllDocsByAuthor
Re-export
import { MultiformatReplica } from "https://deno.land/x/earthstar@v10.2.2/src/entries/npm.ts";

Overwrite every document from this author, including history versions, with an empty doc.

Parameters

keypair: AuthorKeypair
optional
format: FormatArg<F>

Returns

Promise<number | ValidationError>

The number of documents changed, or -1 if there was an error.