Able to remove the objects from the map without any script, like:
If while adding the object, this appears in your .MAP file:
"object (searock03) (1)" interior="0" alpha="255" doublesided="false" model="899" scale="1" dimension="0" posX="482.5" posY="-2240.1000976563" posZ="3.5" rotX="0" rotY="266" rotZ="310">
then, it would be good, if no scripting would be needed and it would just write simple line in .MAP while deleting the object:
"delete (OBJECT NAME)" interior="#" alpha="#" doublesided="#" model="#" scale="#" dimension="#" postX="#" postY="#" postZ="#" rotX="#" rotY="#" rotZ="#">