https://sangkrit.net/how-to-remove-old-permalinks-slugs-from-wordpress-database/
How To Remove Old Permalinks (Slugs) From WordPress Database ?