Saturday, 5 March 2016

Bulk delete GoDaddy e-mail forwarders

Unfortunately even restoring e-mail forwarders from backup doesn't delete existing forwarding addresses.

I created the following script to do some batch deletion.


  1. Use Chrome (for example) to open the forwarders page (e.g. .../frontend/gl_paper_lantern/mail/fwds.html)
  2. Filter the forwarders you want deleting.
  3. Open the developer tools (F12)
  4. Paste the following into the Console


/// USE THIS AT YOUR OWN RISK!
(function() {
var popups = [];
$('a[href*="dodelfwdconfirm.html"]').each(function(i) {
var url = $(this).attr('href').replace('dodelfwdconfirm','dodelfwd');
popups[i] = window.open(url);
setTimeout(function() {
popups[i].close();
}, 2500);
});
})();
Post a Comment