Using a resistor is a good idea, because a limits the current and discharges the capacitor in a more controlled manner, rather than producing huge sparks, which can fire out pieces of molten metal and weld whatever it is you're shorting it with to the capacitor.
Afterwards, measure the voltage on the capacitor to check it's safe to touch.