CMDBuild Forum

Cannot delete unused Domain

I have created a domain which I would now like to delete. It is not being used by any cards as far as I can see (I have created very few and checked them all), but the error message is (and more not copied here):

Call: services/json/schema/modclass/deletedomain
-------------------------------------------------
Error: org.cmdbuild.exception.ORMException: ORM_DOMAIN_HAS_REFERENCE

I am not a developer - just an end-user with a knowledge of db design and creation. How do I fix this please?

I have a number of other problems which I am sure are the result of me doing something basically wrong, so if anyone feels they have time or interest to contact me I'd be very grateful.

If you’ve never created relations using that domain, it can be deleted physically.
Probably you have instead created and then deleted relations with cards using that domain.
Since CMDBuild manages the full versioning of all data (all cards and relations updated or deleted remain in the CMDB for historical analysis), the program prevents you from deleting the domain, otherwise you could no longer interrogate the history of those cards.
You can simply set the domain as “inactive” (from the Administrator Module) and you will not see it more in the CMDBuild user interface.
CMDBuild Team