Delete Ledger Files
deleteLedgerFilesDelete files in one atomic commit; pass each file's sha from readLedgerFiles to refuse the delete if it changed since. Deleting a file still included by another ledger file is refused as BAD_USER_INPUT naming the includers; remove the include from the including file(s) first, then delete. An include counts when its target resolves to the deleted path the way the ledger loads it, relative to the directory of the file that declares it, and glob includes never count. Each new/resulting file is limited to 1 MiB of UTF-8 bytes, including dry runs. dry_run previews without committing: the same refusal as the commit, plus a unified diff per touched file and bean-check's verdict over the projected contents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| dryRun | No | Alias of dry_run, as REST and GraphQL spell it. | |
| ledger | No | Target ledger as owner/name. Required for an unpinned credential; defaults to the credential's ledger restriction. | |
| dry_run | No | If true, validates all operations and returns a preview without committing. | |
| message | No | Alias of description, as REST and GraphQL spell it. | |
| description | No | One sentence describing what these changes do. Shown to the user for approval and used verbatim as the commit message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |