deletes inactive links