Closed
Description
I have created command for product delete by given sku.its working fine except url rewrite.
for example i added product named "shirt123" in back end.and url key also shirt123.html
case 1:if i delete same product using my custom command in terminal..its deleted product.but in table url_rewrite still associated rows are existed.
if i try to add with same product name and url key i'm getting following error
" URL key for specified store already exists."
case 2:if i delete same product from back end ...all is well.
So problem is my code or its a magento bug?