---
title: RemoveBuffer<T>()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/gameobject/removebuffer
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/gameobject/removebuffer.md
last_updated: 2026-12-01
generated_at: 2026-12-01T07:10:17.852Z
locale: en-us
---

# RemoveBuffer<T>()

> Removes the Buffer of T elements, an IBufferElementData, from this GameObject.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** [UnityEngine.CoreModule](/engine/7000.0/script-reference/modules/unityengine-coremodule.md)

```csharp
public bool RemoveBuffer<T>() where T : unmanaged, IBufferElementData
```

### Returns

| Type                                                          | Description                                     |
| ------------------------------------------------------------- | ----------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | False if the GameObject didn't have the Buffer. |

### Remarks

Throws an `ArgumentException` if the GameObject has been destroyed.

This is a structural change: it waits for all jobs in the World to complete. To make it from a job or a system without waiting, record it in a `Unity.Entities.EntityCommandBuffer` instead.
