# FaultInjectionGrainStorage.ClearStateAsync(string, GrainId, IGrainState&lt;T&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstorage/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstorage/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestStorageProviders/FaultInjectionStorageProvider.cs#L102-L116)

```csharp
public Task ClearStateAsync<T>(string grainType, GrainId grainId, IGrainState<T> grainState)
```

Faults if exception is provided, otherwise calls through to decorated storage provider.

### Parameters

- `grainType` (`string`)
- `grainId` (`GrainId`)
- `grainState` (`IGrainState<T>`)

### Returns

Completion promise for the Delete operation on the specified grain.
