Hi @god_prophet ,
You can use the below logic to solve it,
Fetch all records from Query and exclude the records from data loading activity. In exclusion activity set primary set as 'Query' . And now Delete the result records with Update data activity. (Test the above in lower environment)

This is just an logic idea to solve the case, you can modify the workflow as per your requirement .