# Discard Recording

While recording is happening, the recording can be discarded with this call. It's always recommended to call discard incase if you don't need the recording. This will avoid saving the recorded content and helps in freeing any memory allocated.

```csharp
recorder.DiscardRecording((success, error) => {
    if(success)
    {
        Debug.Log("Discard recording successful");
    }
    else
    {
        Debug.Log($"Discard recording failed with error [{error}]");
    }
});
```
