...
Then you need to run a query that inks links all three tables together to find and delete the applications tied to the policies that belong to domain_id 5:
...
...
Then you need to run a query that inks links all three tables together to find and delete the applications tied to the policies that belong to domain_id 5:
...