I am working on a headless magento solution, but I am facing a bit of a problem.

As the official magento 2 docs suggest, cart items can be deleted using these:

DELETE /V1/guest-carts/:cartId/items/:itemId -> For Guest Users

DELETE /V1/carts/mine/items/:itemId -> For Signed-in users

Is there a way to delete multiple items without using the same API multiple times, or more conveniently empty the cart?

1 Answer 1


Magento documentation does not specify an endpoint that allows for bulk deletion. Neither for signed-in users nor guest users.

You can, however, define custom endpoints (see an official documentation page). There's also a tutorial that shows how to do it for bulk edit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.