MMSC16answered grow question 4 months ago I wouldn't suggest you'll need to replace the soil. I'm quite a novice but perhaps all you'll need is to flush with PH appropriate water once you've vaccuumed the excess from the top soil.
If you haven't culitvated the soil that'll also make it easier to remove the ammendment.
It'll be okay, but I think replacing the soil might do more damage to the roots than to allow the toxicity to wash out.
Interested to see what the other members of the community think, as again - I have much less experience than some of the growers here.
Lastly, it might help to give more information about your medium, pot size, strain, photoperiod v autoflower etc. so a more tailored anser will be generated.
Good luck and happy growing!