Hi,
I had misunderstood your questions.
You can use entities from System: Entity (for entitues) and Entity_Attr (for attributes of an Entity):

Just don't forget to filter both entities with Is_Active = True, because entities and attributes that you have deleted will be there with IsActive = False.
Cheers,
João