enable delete all functionality

This fucntionality was switched off because it does not 100% work.
It works in all cases except when a link has been renamed then deleted.