I am trying to prevent products and variations from being deleted through the WooCommerce REST API. Deletion should still be able from the admin interface, though.
Is there any way to achieve this?
Can I somehow overwrite the behaviour of the WooCommerce REST API when a DELETE request is sent?
Thanks!