It simply means to stop eating completely, or almost completely, for a short period of time.
A fast usually lasts 12 to 24 hours, but in some cases even days.
Some fasts involve the intake of water, tea or coffee, or sometimes even small portions of food during the duration period.