Homeworld Effects Manual: delete()

delete()

Destroys an effect.

With the number of effects Homeworld can generate, garbage collection is important. Nobody likes a memory leak. delete() deletes all objects created by a file and stops execution of that file. It's good practice to put this statement at the end of all your effects. (End in the temporal sense, not necessarily the spatial sense.)

WARNING: Do not use delete() in bulletEffects for beam weapons. Those effects are deleted by the engine when they are finished, and a delete() call will crash the game. The damageDone() command takes the place of delete() in damageEvents.