• Parameters

    • itemId: ItemID

      The ID of the original item to be removed.

    • context: HookContext

      Contextual information about the hook.

    Returns Promise<ItemID> | ItemID

    The ID to be used for the remove() instead of the original itemId specified by the caller. Returning a rejected promise will block the operation and will return a rejected promise to the caller as well as trigger the onFailure() hook.

    A hook that is called before a remove() operation.