purge_dimension_instances function

Purge instances of dimensions