If I have the following tables:
Product
+----+------+
| id | name |
+----+------+
| 1 | box |
| 2 | car |
| 3 | ball |
+----+------+
Color
+----+-------+
| id | name |
+----+-------+
| 1 | red |
| 2 | green |
| 3 | blue |
+----+-------+
Size
+----+--------+
| id | number |
+----+--------+
| 1 | 1 |
| 2 | 5 |
| 3 | 10 |
+----+--------+
Color Options (#product | #color)
+---------+-------+
| product | color |
+---------+-------+
| 1 | 1 |
| 1 | 3 |
| 3 | 1 |
| 3 | 2 |
| 2 | 3 |
+---------+-------+
Size Options (#product | #size)
+---------+-------+
| product | color |
+---------+-------+
| 1 | 1 |
| 1 | 2 |
| 3 | 1 |
| 3 | 2 |
| 2 | 2 |
| 2 | 3 |
+---------+-------+
When I delete a product what is the best way to delete the relations it have with color and size? Do I need to do a delete in every table or there any automatic process?