# StatelessWorkerOptions.RemoveIdleWorkers

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.statelessworkeroptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.statelessworkeroptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Configuration/Options/StatelessWorkerOptions.cs)

```csharp
public bool RemoveIdleWorkers
```

When set to `true`, idle workers will be proactively deactivated by the runtime. Otherwise if `false`, than the workers will be deactivated according to [GrainCollectionOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.graincollectionoptions/).
