Function invokeCsErase

  • Erase all CS entries under a name prefix.

    Parameters

    Returns Promise<number>

    Total erased entries.

    Remarks

    NFD cs/erase command can impose a limit on how many CS entries may be erased upon each invocation. This function repeatedly invoke cs/erase until it returns zero. Notice that this function could take a long time if name is a busy prefix, and this function may continue forever if name is a prefix of opts.prefix.