Adds delete method to ResourceClassManager

and adds test for that method