Hi,
I tried what you described (delete a class, then its subclass) but I am not able to reproduce your problem. Here is my code:
from owlready2 import *
onto = get_ontology ("
https://test.org/test.owl")
with onto:
class C(Thing): pass
class D(C): pass
default_world.graph.dump()
print()
destroy_entity(C)
default_world.graph.dump()
print()
destroy_entity(D)
default_world.graph.dump()
print()
Could you provide me a similar example that show the problem?
Jiba