26 addresses this a bit differently. The problem with this is utilizing bind_and_run which is stated in the doc that is supposed to return an array, not an integer. While that can be updated, utilizing affectingStatement should be more consistent as both are* meant to return integers.
Right now nothing is returning after delete query.