Salva Thank you, that did help. I eventually managed to use phpMYadmin to delete one such orphaned inventory record and also the meta record. However, unfortunately, I have other orphaned inventory records that do not show in these tables. I think these are inventory records that were once linked to variations rather than simple products. For instance, inventory record with ID 1177 has product_id 10010 but product_id 10010 does not exist in Woo.
GET https://mastersofchess.com/wp-json/wc/v3/products/10010/inventories/1177 works and responds with JSON for the inventory record.
But https://mastersofchess.com/wp-json/wc/v3/products/10010 responds with 404 - woocommerce_rest_product_invalid_id
and DELETE https://mastersofchess.com/wp-json/wc/v3/products/10010/inventories/1177 fails with 403 atum_mi_rest_cannot_delete "message": "Sorry, you are not allowed to delete this resource.",
In MyPHPAdmin, a search of the following two tables for 1177 or 10010 does not find anything. So I cannot just delete them like I did with the previous orphaned entry - there is nothing to delete.
clho_atum_inventories
clho_atum_inventory_meta
Search of clho_atum_product_data for 10010 also finds nothing.
It seems like it is impossible to delete these corrupted Inventory records.
thanks,
James