More cleanup when relations are deleted.