# UnregistrationCause

Package: [Microsoft.Orleans.Core](/orleans/docs/api/csharp/microsoft.orleans.core/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core)

```csharp
public enum UnregistrationCause
```

Indicates the reason for removing activations from the directory. This influences the conditions that are applied when determining whether or not to remove an entry.

## Fields

- `Force` = `0` - Remove the directory entry forcefully, without any conditions
- `NonexistentActivation` = `1` - Remove the directory entry only if it is not too fresh (to avoid races on new registrations)
