helia
    Preparing search index...

    Interface RmOptions

    Options to pass to the rm command

    interface RmOptions {
        offline?: boolean;
        onProgress?: (evt: PutBlockProgressEvents | GetEvents) => void;
        providers?: (PeerId | Multiaddr | Multiaddr[])[];
        shardFanoutBits?: number;
        shardSplitStrategy?: ShardSplitStrategy;
        shardSplitThresholdBytes?: number;
        signal?: AbortSignal;
    }

    Hierarchy (View Summary)

    Index

    Properties

    offline?: boolean

    If true, do not perform any network operations and throw if blocks are missing from the local store. (default: false)

    onProgress?: (evt: PutBlockProgressEvents | GetEvents) => void
    providers?: (PeerId | Multiaddr | Multiaddr[])[]

    An optional list of peers known to host at least the root block of the DAG that will be fetched.

    If this list is omitted, or if the peers cannot supply the root or any child blocks, a findProviders routing query will be run to find peers that can supply the blocks.

    shardFanoutBits?: number

    The number of bits of a hash digest used at each level of sharding to the child index. 2**shardFanoutBits will dictate the maximum number of children for any shard in the HAMT.

    8
    
    shardSplitStrategy?: ShardSplitStrategy

    Whether to estimate the size of the data that determines whether to shard the directory instead by counting link bytes, or count it accurately by calculating the size of the resulting block.

    shardSplitThresholdBytes?: number

    If the serialized node is larger than this it might be converted to a HAMT sharded directory.

    262144
    
    signal?: AbortSignal