Alternative to using Terrain:Clear to clear terrain

i have pretty large terrain (8000x8000) that I need to clear by script.
using Terrain:Clear() crashes the script entirely and results in a timeout/exhaustion.
how can I script this to make it load in chunks?
I have tried looking up on google, discord servers, and youtube for help or a tutorial for this, as I am not that experienced in terrain scripting, however I didn’t find anything that was related to my issue. Any replys would help me a lot! Thank you

Make a 2D for loop that deletes chunks at a time? You can put a task.wait() in the inside loop to force it to wait between each chunk. It will not timeout then.

do you know how I would script it though? would I use something like :FillTerrain(), or :Clear()?