ATLAS-1673: Type deletion should check for reference & instances

Signed-off-by: Madhan Neethiraj <madhan@apache.org>
7 files changed