#include <include/flecs.h> FLECS_API void ecs_delete(ecs_world_t *world, ecs_entity_t entity)
Delete an entity. This operation will delete an entity and all of its components. The entity id will be recycled. Repeatedly calling ecs_delete without ecs_new or ecs_new_w_id will cause a memory leak as it will cause the list with ids that can be recycled to grow unbounded.
world- The world.
entity- The entity.
- Quickstart / Entity
- Quickstart / Hierarchies
- Quickstart / System
- Designing with Flecs / Annotations
- Manual / Id recycling
- Manual / Generations
- Manual / Manual id generation
- Manual / Id ranges
- Relations Manual / Relation cleanup properties