# RemoveCommandBuffer(CameraEvent, CommandBuffer)

> Remove command buffer from execution at a specified place.

## Definition

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

```csharp
public void RemoveCommandBuffer(CameraEvent evt, CommandBuffer buffer)
```

### Parameters

**** (\[CameraEvent]\(/engine/6000.7/script-reference/unityengine/rendering/cameraevent)): When to execute the command buffer during rendering.**** (\[CommandBuffer]\(/engine/6000.7/script-reference/unityengine/rendering/commandbuffer)): The buffer to execute.

### Remarks

If the same buffer is added multiple times on this camera event, all occurrences of it will be removed. This API is only available with the Built-in renderer.

Additional Resources: [CommandBuffer](/engine/6000.7/script-reference/unityengine/rendering/commandbuffer.md), [Camera.RemoveCommandBuffers](/engine/6000.7/script-reference/unityengine/camera/removecommandbuffers.md), [Camera.RemoveAllCommandBuffers](/engine/6000.7/script-reference/unityengine/camera/removeallcommandbuffers.md), [Camera.AddCommandBuffer](/engine/6000.7/script-reference/unityengine/camera/addcommandbuffer.md), [Camera.GetCommandBuffers](/engine/6000.7/script-reference/unityengine/camera/getcommandbuffers.md).
