Suppose I want to delete a lot of records from DirPartyTable (or any table where you can run validateDelete() or something similar). It would seem that using a delete_from statement would be the way to go. However if one of the records cannot be deleted (i.e., validateDelete() returns false) it looks like the entire statement fails and none of the records are deleted.
Is there a way to run a delete_from statement and skip the records where validateDelete is false? I tried adding validateDelete to the query but then the job wouldn't even compile.
*This post is locked for comments
I have the same question (0)