Corrupt database file

I have an issue, I am not able to load the webgui due to the following error: home assistant the system could not validate that the sqlite3 database //config/home-assistant_v2.db was shut down cleanly. I have read the cure to fix this is to just delete the database, the problem I have is I dont know how to do it from the console logged in as root. Does anyone know if / how this can be done.

Thnx
Dickie