Unable to rebuild discourse

so can reinstall discourse can solve it and can you advice how can i do it from SSH?