Skip to main content
Latest
method Earthstar.MultiformatReplica.prototype.overwriteAllDocsByAuthor
Re-export
import { Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { MultiformatReplica } = Earthstar;

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.