magento2 – Category URL Problems: 404 after removing the store view

I recently upgraded my Magento 1 store to Magento 2 and noticed that the URLs for the category are pre-determined for the store's view URLs in Spanish. I removed all store views, except for English, and category URLs remain default to Spanish. If I try to access the URL in English, a 404 error is displayed.

The store view in English is the default store.

I tried to execute this extension ( to regenerate the category urls, but the URLs in Spanish are still shown, they are the only ones that are shown in the site map, Although the Spanish store has been deleted.

How can I re-establish all category URLs in the store view in English?