Cotal TypeScript packages
    Preparing search index...

    Function deleteChannel

    • Delete one channel: its retained history (a filtered purge) and its registry entry, through core's clearChannel, the operation the web dashboard's delete button runs, with the same per-action authority: a static-auth mesh mints a one-shot channel-purger credential from the resolved mesh's seed, a user mesh asks for a channel-purger view (a fresh ledger check per click), an open mesh connects bare. No manager involved. The name must be the one the mesh uses, concrete and valid: a wildcard is refused (it would purge channels the operator did not name) and a name the wire would rewrite is refused rather than quietly rewritten.

      Parameters

      Returns Promise<{ ok: true; purged: number } | { error: string; ok: false }>