Canceling line item can be done in the order section.
Step 1: Click on the order which you need to cancel the line-item.
Step 2: Click on the Cancel Shipment
Step 3: Select the Line-item and quantity.
Step 4: Click on the submit button to proceed.
Step 5: Check the timeline for a clear update of changes.