Litium ion batteries do not have a 'memory' like the old NiMH or NI-Cad batteries:
A lithium-ion battery provides 300-500 discharge/charge cycles. The battery prefers a partial rather than a full discharge. Frequent full discharges should be avoided when possible. Instead, charge the battery more often or use a larger battery. There is no concern of memory when applying unscheduled charges.
Although lithium-ion is memory-free in terms of performance deterioration, batteries with fuel gauges exhibit what engineers refer to as "digital memory". Here is the reason: Short discharges with subsequent recharges do not provide the periodic calibration needed to synchronize the fuel gauge with the battery's state-of-charge. A deliberate full discharge and recharge every 30 charges corrects this problem. Letting the battery run down to the cut-off point in the equipment will do this.