Only the dentist can fix a cavity, you can’t get rid of it at home. The dentist will take the cavity/decay out and put a filling in it.