Back to Community

How to Bulk Unlink and Manage Thousands of Broken Links in WordPress

33 threads Sep 10, 2025 PluginBroken link checker

Content

Managing a large number of broken links is a common challenge for WordPress site owners. When you have hundreds or even thousands of links to handle, the prospect of processing them individually or in small batches can be daunting. This guide explains the built-in tools available and the common limitations you might encounter when trying to bulk unlink broken links at scale.

The Core Problem: Scalability and Server Limits

The primary issue users face is that the 'unlink' process is a server-intensive operation. Each time a link is unlinked, the plugin must locate the link within your post or page's content in the database and modify it. For a large number of links, this process can exceed your server's PHP execution time limit or available memory, causing the operation to fail or timeout. This is why the plugin's interface often defaults to showing a limited number of links per page (e.g., 20 or 30).

Available Bulk Unlinking Methods

Within the 'Broken Link Checker' interface, there are two primary methods for handling links in bulk:

  1. Increase Items Per Page: Navigate to Tools -> Broken Links. At the top of the screen, click Screen Options. Here, you can increase the "Number of items per page" to a higher value, such as 100 or 200. You can then use the checkbox at the top of the links list to select all links on the page and use the Bulk Actions dropdown to choose "Unlink".
  2. Use Search Filters: You can filter the list to show only links with a specific status (e.g., "404 Not Found" or "Server not found"). After applying the filter, use the method above to select and unlink all filtered links on the page. You can save frequent searches as custom filters for easier access later.

Common Limitations and Workarounds

  • No True "Unlink All" Feature: As confirmed in multiple support threads, a feature to unlink every detected broken link in a single click does not currently exist in the plugin. The Bulk Actions menu is the intended method for large-scale operations.
  • Server Timeouts: Even when increasing the number of links per page, attempting to process too many at once can cause the operation to fail. A common workaround, as mentioned by one user, is to process links in smaller, more manageable batches (e.g., 50-100 at a time) to avoid overloading the server.
  • Cloud Version Differences: Some users have noted differences between the old self-hosted version and the newer cloud-based version of the plugin. Specifically, the ability to easily clear or remove fixed links from the list has changed, and fixed links may remain visible even after being addressed.
  • No WP-CLI Support: For developers managing very large sites, it's important to know that the plugin does not currently offer WP-CLI integration, which would allow for command-line bulk operations.

Troubleshooting Failed Bulk Actions

If your bulk unlink actions are failing, refreshing the page without any changes, consider the following steps:

  1. Check Server Resources: Contact your hosting provider to verify that your server's PHP memory limit and max execution time are set to sufficient values for a large operation. One user resolved their issue by having their host increase the server load limit.
  2. Plugin Conflict Test: Deactivate all other plugins temporarily and test if the unlink function works. If it does, reactivate your plugins one by one to identify which one is causing the conflict.
  3. Use a Default Theme: Temporarily switch to a default WordPress theme (like Twenty Twenty-Four) to rule out a theme-related issue.

Important Considerations Before Unlinking

  • No Undo Function: Be extremely cautious when using the unlink feature. The action is permanent and cannot be undone through the plugin. If you accidentally unlink a valid link from hundreds of posts, you will need to manually restore each one.
  • Verify Links Are Truly Broken: A link might be temporarily unavailable. The plugin's "Re-check" function (found under Settings -> Link Checker -> Advanced) can verify the current status of links before you mass-remove them.
  • Explore Alternatives: Unlinking is not always the only option. For broken links to internal images or pages that have been moved, you might use a search-and-replace plugin or a redirection plugin instead of removing the link entirely.

While managing thousands of links remains a manual process, using the bulk actions in concerted batches is the most effective method provided by the plugin. The 'Broken Link Checker' team has acknowledged user requests for more powerful bulk editing tools and automation, but there is no public timeline for such features.

Related Support Threads Support