in reply to DBD::AnyData delete rows
The delete could be failing for any of a dozen reasons, all on the database side. (You should make similar changes for all other DBI calls, as well.)