I am trying to delete an order from database i was tried using bellow function but this is not working.can any body tell me how to delete an order from db using order id.

<?php wc_delete_order_item( absint( $order_id ) ); ?>

closed as off-topic by Brad Dalton, TheDeadMedic, Mark Kaplun, Howdy_McGee, Robert hue Sep 8 '15 at 5:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.


Orders are just regular posts:


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