deleting on class type