Hi, I just created my categories programmatically, but then deleted them all from admin panel to try again. But this time, it says "URL key for specified store already exists." How to fix this?
Hi @mage_ento1
To resolved this error - i would suggest you to do reindexing command.
run this command - php bin/magento indexer:reindex
After deleting all the categories - run above command and then try to create the category again - it will resolved the error.
Hope it helps !
You can find same issue and solution for this in the given link:
https://github.com/magento/magento2/issues/7298
Apart from that, you can check that specific entry in admin > url rewrites and if that exists then delete that manually.
Then run
php bin/magento indexer:reindex