modify delete method of SubnetImpl class.