# FirestoreStateStorageOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.persistence.firestore.firestorestatestorageoptions/)

## DeleteStateOnClear {#deletestateonclear-52ed2155}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.persistence.firestore.firestorestatestorageoptions/properties/deletestateonclear-52ed2155/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Google/Orleans.Persistence.Firestore/FirestoreStateStorageOptions.cs)

```csharp
public bool DeleteStateOnClear
```

Indicates if grain data should be deleted or reset to defaults when a grain clears its state.

## GrainStorageSerializer {#grainstorageserializer-0aefa82c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.persistence.firestore.firestorestatestorageoptions/properties/grainstorageserializer-0aefa82c/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Google/Orleans.Persistence.Firestore/FirestoreStateStorageOptions.cs)

```csharp
public IGrainStorageSerializer GrainStorageSerializer
```

Gets or sets the serializer to use for this storage provider.
