removeItem

Method Signature String[] removeItem(String itemId);
Description
Removes the specified item ids from the cart.
Parameters String itemId – An item Id to remove from the cart.
Result String[] – All the errors that occurred while trying to remove the item to the cart. If this array is empty then the removal was successful. If this array contains any values then you'll want to display the errors to the customer. Even if the errors array contained something the global cart variable is automatically updated.