Skip to main content
2 of 2
added 28 characters in body
O.Petrov
  • 175
  • 4
  • 10

Delete url rewrite programmatically

I need to set some url rewrites for different pages. But when I started my CLI script, I had some issue "Request Path for Specified Store already exists." That's why I need to delete this url rewrite before. How can I do it programmatically.

Option to find this URL must be "Request Path", because ID of this url can be different on the test server and live site.

Please provide me, how can I do it.

O.Petrov
  • 175
  • 4
  • 10