Delete a class and the modified index