Table of Contents

Enum TeamDeleteMode

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

What DeleteTeamAsync does to a team.

public enum TeamDeleteMode

Fields

Hard = 1

Remove the team record and drop its storage immediately, as versions before 3.13.1 did.

Irreversible, and it requires whatever privilege the storage adapter needs to drop a team's data — for the MongoDB adapter in a per-team-database deployment, that is dropDatabase. Choose it only where a deletion genuinely must leave nothing behind.

Soft = 0

Mark the team deleted and hide it from every read. The default.

Recoverable, and — the reason it is the default — it needs no elevated database privilege. Dropping a team's storage is confined to PurgeTeamAsync, so a deployment whose database user cannot drop databases can still delete teams (Tharga/Team#224).

Remarks

Stored nowhere — this is a host's configuration, not a property of a team, so it can be changed without a migration. A team that was soft-deleted while the mode was Soft stays soft-deleted if the host later switches to Hard; the switch governs new deletions only.