After deleting a store i get No such entity on the Content>Pages. Even if i add new page and save still get No such entity. But under Store>Configuration>Web under CMS Home Page drop-down they are still listed and the page i just created.
How can i get this back?
Looks like this issue is migrated from Magento 1.x
To fix this you should delete rows related to deleted store from table cms_page_store