backblaze-labs/b2-action - v0.1.0
    Preparing search index...

    Function deleteCommand

    • Delete files from B2.

      Modes:

      • If source ends with /, treat it as a prefix and delete every version matching it. Streams via Bucket.deleteAll.
      • Otherwise delete the single file by name. We look up the latest version via listFileNames to get its fileId and call deleteFileVersion.

      With dry-run: true, no actual deletions happen; the action reports what would have been deleted.

      Parameters

      Returns Promise<DeleteResult>