I think the current doc for magento-sdk removeItemFromCart has an error in its example in the following section:
Current:
const customQuery = { cart: 'remove-item-from-cart-custom-query', metadata: { fields: 'id email' } };
Should be:
const customQuery = { removeItemFromCart: 'remove-item-from-cart-custom-query', metadata: { fields: 'id email' } };