# DestroyFeature(CommandBuffer, DLSSContext)

> Destroys a specific feature created with GraphicsDevice.CreateFeature.

## Definition

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

```csharp
public void DestroyFeature(CommandBuffer cmd, DLSSContext dlssContext)
```

### Parameters

**** (\[CommandBuffer]\(/engine/6000.7/script-reference/unityengine/rendering/commandbuffer)): The rendering command buffer to record commands into. This call does not execute the command buffer, you must execute the command buffer yourself at any time after this call.**** (\[DLSSContext]\(/engine/6000.7/script-reference/unityengine/nvidia/dlsscontext)): The command object to destroy.
