Hello – As I’m working through Sitecore trying to add some pages and delete some, I’m running into this “Breaking Links” error that doesn’t allow me to delete pages I don’t need. For example, I now have two “COPY OF” folders in the content tree because I duplicated a couple, but now can’t delete the duplicates. Below is the error I keep getting.
Can not delete copied items in Sitecore 7. Getting Error Job started: RemoveLinks|System.ArgumentNullException: Value cannot be null
Try running "Rebuild Link Database" from Control Panel first– Marek Musielak ♦Jan 5 at 20:32
I'd recommend trying a few options here.
Rebuild Link Database
Go to Control Panel -> Database -> Click on Rebuild Link Database -> select master and hit rebuild.
DB Browser- You can find your folder/item from the content tree and hit Delete
The DBBrowser.aspx page is essentially a faster version of the Content Editor. This allows you to browse all items in your Sitecore databases and make basic content updates.
Remove Broken Links
This is pretty straightforward: in one click, all broken links in Sitecore are cleaned up.
Refer to this link for more details:https://www.sitecorespark.com/article/sitecore-admin-pages
Hope it helps!
Another way to do this using code behind, Sitecore maintains the table named Links in the database specified in the LinkDatabase section of web.config. You can get all broken links in following way:
Sitecore.Data.Database db = Sitecore.Context.Database; Sitecore.Links.LinkDatabase linkDb = Sitecore.Globals.LinkDatabase; Sitecore.Links.ItemLink brokenLinks = linkDb.GetBrokenLinks(db);
Also if you want to do it from Sitecore then you can open the remove broken links page.