---
id: world-detach
name: World.detach
category: world
kind: namespace-method
tokens: World.detach
sig: World.detach(entity, prop_id) -> void
tip: Detach a component from an entity at runtime.
order: 14
ns: World
member: detach
---
Removes component prop_id from entity — the inverse of World.attach.