I am trying to delete a domain I am using from ArcCatalog -> Feature Class Properties-> Subtypes-> Domains. But when I try to do that I get this error message: "Failed to delete a domain from the database. The domain is used by an attribute rule."
I've checked if there are any locks and there aren't.
Does anyone know why I can't delete it?
Thank you 
I use ArcGIS 10.1. Standard on an ArcSDE Postgres Geodatabase.
Update: the problem degenerated a lot :) I was able to delete the field corresponding to the domain, but I still cannot delete the domain. Same error. Plus, when I want to disable the existing subtype I get this message "Failed to change the subtyoe field. LInestring or poly boundary is self-intersecting". I assume it's just one single problem that messed up the subtype and the domains and I get different error messages.
