0

I need to delete a store view, but there is no way.

How does it work?

enter image description here

3 Answers 3

2

I would not recommend deleting a storeview from the backend. There is a good chance your request will time out and give you all sorts of trouble.

If you still want to do it make backups!

An alternative way would be to dump the current configuration into app/etc/config.php (app:config:dump) and edit the confg.php stores section to your needs. Then do a setup:upgrade. This will make sure the deleted stores from the config.php will be deleted from the database as well.

The system will ask if you actually want to delete the stores. This way you have full control.

0

You should go storeview detail page by click on storeview link.

For Delete Storeview follow below steps. Go Admin > Stores > All stores.

Select storeview which you want to remove. press button "Delete Store View". It would take some time.

After it execute below commands.

php bin/magento indexer:reset;
php bin/magento indexer:reindex;
php bin/magento cache:clean; 

After Update permission of var cache pub/static folder.

2
  • Never use chmod 777
    – Black
    Apr 13, 2022 at 13:37
  • yes, for security we could not use. generally i used to for ubuntu local server.
    – S.P
    Apr 13, 2022 at 13:40
0

In the backend you need to go STORES -> Settings > All stores, the store view, and press on the "Delete Store View" link at the top:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.