Skip to main content
If you lose access to the admin account, you can delete the admin user from the database and let Logwiz re-seed it with the credentials set in your environment variables. Before continuing, make sure LOGWIZ_ADMIN_USERNAME and LOGWIZ_ADMIN_PASSWORD are set to the values you want. If they are not set, Logwiz will re-seed the account with the default credentials (logwiz / logwiz).
This permanently deletes the admin user record, including any session data. The account is recreated on the next startup using your environment variables.
  1. Delete the admin user:
    docker exec -it logwiz sqlite3 data/logwiz.db "DELETE FROM user WHERE role = 'admin';"
    
  2. Restart the container:
    docker compose restart logwiz
    
Logwiz seeds a fresh admin account on startup using LOGWIZ_ADMIN_USERNAME and LOGWIZ_ADMIN_PASSWORD. You will be prompted to change the password on first login.