@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Class DeleteRemoteAction

    Permanently deletes a specific file version from B2.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new DeleteRemoteAction for the given relative path.

      Parameters

      • relativePath: string

        Path relative to the sync root.

      • fileId: string

        The B2 file version ID to delete.

      • doDelete: (fileId: string, fileName: string) => Promise<void>

        Callback that performs the deletion.

      Returns DeleteRemoteAction

    Properties

    fileId: string

    The B2 file version ID to delete.

    relativePath: string

    Path relative to the sync root.

    size: 0

    Size in bytes of the file, or 0 for metadata-only actions.

    type: "delete-remote" = ...

    The kind of action.

    Methods

    • Deletes the remote file version (unless dryRun) and returns a 'delete-remote' event.

      Parameters

      • dryRun: boolean

        Whether to simulate the action without making changes.

      Returns Promise<SyncEvent>

      An async generator yielding sync progress events.