Edit Terrain via scripting

Is it possible to lower the terrain without going in to the terrain editor and using the brush? I want to lower it where there is a mesh. I know it is possible - I’m just not sure where to start! Any advice is appreciated.

Terrain is made using a heightmap, and you can alter it through this: http://unity3d.com/support/documentation/ScriptReference/TerrainData.html