Required parameter ‘theme_dir’ was not passed in magento 2

It’s very simple. go to database and open “theme” table and delete all rows which theme are not exist.

I think it will solve the issue.