Thanks for your question. There’s more to removing the www from the domain name than just changing the WordPress site settings. This type of change may require some extra steps to keep your site working and appearing in search results as expected.
We recommend working with your hosting provider if you want to change the domain name for a site, but we have some guidance available on the Yoast blog in these articles..