Delete Two Records: Each From Different Tables

For some reason, the following does not delete the two records that reside in two tables.

I have a table that contains service records, and another table that contains the service status records.

The status record table uses a foreign key (service_id) from the service table. I also have a delete button that opens a modal that gives the user a prompt to ask for a confirmation to delete the records.

Can I delete both records with one delete button that executes the form that deletes the records using the following:

So far this doesn’t work. So I am appealing to anyone who may have a solution. Thank you very much!

Community Page
Last updated: