Remove network relate entities when removing network.