To treat a cavity your dentist will remove the decayed portion of the tooth and then fill the area on the tooth whe