Garry's Mod Wiki

Entity:Remove

  Entity:Remove()

Description

Removes the entity it is used on. The entity will be removed at the start of next tick.

Example

ents.FindByClass( "prop_physics" )[1]:Remove()
Output: Removes whichever prop is first found or errors if no entity was found.