I want to delete the order Item form the Successfully placed Order how to delete the order item.Can anyone help to solve this situation.

Thanks in Advance :)


By default, Magento2 does not have any API point for the delete an order item.

But PHP function \Magento\Sales\Api\OrderItemRepositoryInterface::delete(\Magento\Sales\Api\Data\OrderItemInterface $entity) exits which can delete the order item. You can create custom API point using webapi.xml and call this method on delete operation.

As per the Magento 2 system, order item delete does not a good idea. you can issue orders shipment, invoice etc.

  • Thanks @amitBera
    – Sabareesh
    May 4 '20 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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