Small code clean-up
Add the hook execution to delete() and executeTruncateQuery()