# Sandbox.Component.DestroyGameObject

```csharp
void DestroyGameObject()
```

Destroy the parent GameObject. This really only exists so when you're typing Destroy you realise
that calling Destroy only destroys the Component - not the whole GameObject.

Declared in [Sandbox.Component](/api/Sandbox.Component).
Assembly: `Sandbox.Engine`.
