Delete all selected related elements and not just the first element