Before harvesting, the plants should be fed plain water only (no fertilizer) to remove any fertilizer that has built up in the plants themselves, and the hydroponic media or soil they were grown in.
If you are growing hydroponic marijuana, start clearing about 7 days before harvest. This can be done by changing the solution and using only distilled water or water treated with reverse osmosis (no nutrients). Some growers will change the water two or more times before harvest because the media may hold nutrients.
With soil you need to change to distilled water or water treated with reverse osmosis about 14 days before harvest. Avoid slow release fertilizers because they are hard to remove. Growers that have to use slow release fertilizer can use regular nutrients for the last month.