Database damaged

I get this:

sqlite3.DatabaseError: database disk image is malformed

What to do in this case? If i delete the database is it safe ?

It is safe to delete the database file - I have had to do it a few times in the couple of years I have been using HA. You will lose the HA history, but nothing else drastic happens.

Ok, thanks… i’ll delete it…