Added the ability to delete the relationships together with the class.