Destroy rules when destroy repository