purge_dimension function

Purge instances of a dimension