This approach will lead to rows getting deleted on every execution.  If you floor the datetime down to just the date (at midnight utc), then there will only be rows to delete once per day.  Since you're checking the count, I presume you wanted there to be executions where there's nothing to delete.