How does deleting a bunch of files in your Asterisk directory fix a problem in you MySQL database?
It sounds to me like you need to log into the database as ‘root’ and delete the existing ‘hooks-noid’ entry from one of the tables in there. I’m going to guess that one of the files you are deleting is trying to add that as a new entry, but it already exists in your table, so the update is failing.
It’s actually the “fwconsole reload” that is fixing it.
I saw that posted by someone here as a fix for the same warning and ran it without looking at what it actually does…