function removeNodeAtPath({
  treeData,
  path,
  getNodeKey,
  ignoreCollapsed = true,
}) {
  return changeNodeAtPath({
    treeData,
    path,
    getNodeKey,
    ignoreCollapsed,
    newNode: null, // Delete the node
  });
}
Removes the node at the specified path and returns the resulting treeData.

@param {!Object[]} treeData
@param {number[]|string[]} path - Array of keys leading up to node to be deleted
@param {!function} getNodeKey - Function to get the key from the nodeData and tree index
@param {boolean=} ignoreCollapsed - Ignore children of nodes without `expanded` set to `true`

@return {Object[]} changedTreeData - The tree data with the node removed