I have the below tables

I want to delete the data corresponding to the productId from both the tables. I have studied that JOIN can not be applied with DELETE in sqlite so i have tried the below query
DELETE FROM optionToValues WHERE optionToValues.optionId IN
(SELECT optionToValues.optionId
FROM optionToValues
JOIN productOptions on productOptions.optionId = optionToValues.optionId
WHERE productOptions.product_id = 82)
But no delete operation is performed. Please suggest me something how we can achieve this. Any help is appreciated.
DELETE FROM productOptions WHERE product_id = 82? If not, what exactly ARE you trying to accomplish?RESTRICTdeletion where you'd get invalid relations, orCASCADEthe deletion across tables): sqlite.org/foreignkeys.html#fk_actions