I have a Magento2 store. I don't want to add the category path into products URLs for that I set “Use Categories Path for Product URLs” as "NO" in magento2 Admin, but It still add the category path in some products, not in all products. Could you help me?
Magento won’t update existing url rewrites but you could use a module like this one which is free. Also don’t forget to reindex and flush the cache.