Removing unwanted user class and all its references