There are two bolts that hold the caliper on, remove them first. Then the pads are held i the caliper by two smaller bolts, remove them & the pads will come out. The smaller bolts are commonly called slide bolts. It is always a good idea to clean the slide bolts with a wire wheel & put a dab of grease on them before reinstalling. Clean the slide bolts, then take a pair of pliers & if the piston in the caliper is sticking out squeeze it back in with the pliers. Now install your new pads, reinstall the caliper & you are on your way.
Hope this helps
Yes, you need to remove the two bolts on the caliper bracket that is holding it on to the swingarm. If you already the caliper off & can't get the pads in, then a lot of times, you may need to remove the parking brake assy from the caliper, install the pads, then the caliper, then reinstall the park brake assy (if we are talking about the rear) Here is a picture of the parts diagram too, this may help as well