Purge db help

sorry I would like to optimize the db but without losing the consumption and traking data, but I can’t understand if I purge will I lose them?