Discharging, and the time constant
A charged capacitor discharging through a resistor loses charge at a rate proportional to its charge, so the charge falls exponentially with time constant RC, to about 37 percent after one RC, and the energy it held ends as heat in the resistor.