In the UK, our brake calipers get stuffed with mud and other debris so it is usually time to give them a good clean out when replacing the pads.
To do this with the front caliper it is just a case (IIRC) of undoing the two big retaining bolts that hold the caliper to the fork leg and pulling it off.
Once the old pads are out you can blow the caliper out with an airline if you have one and check the two pistons.
If there is any problem with the piston dust seals you will usually see a bit of frayed rubber sticking out by the piston!
I use an aerosol of WD40 to wash around the pistons to get rid of any dirt before pushing them back in. If you don't push them right back in the new pads will not clear the disc/rotor.
I don't want to be a prick but if you don't know how to replace the pads it might be best to leave it to an expert, you don't get a second chance with brakes.
I am a mechanic by trade & service manager for over 20 years if one of our guys stuff up brakes or steering & there is an injury they will come after the mechanic & me with possible charges in court, hell if I employ an idiot & he grinds his thumb off I can be fined $50k.
Replacing brake pads is pretty easy & straight forward so it is a no brainer but the result could be death if not done correctly, other things come into play like the disc condition & or thickness.
I just replaced both the disc & pads on one of my Triumph's as I knew the disc was worn & glazed, it's just not worth the risk.
So please don't take this the wrong way, I've seen photos of disc pads the wrong way around, bolts stripped etc. One has to be careful if not knowing someones ability