> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# KeepMembers

Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. Exception: for an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — management keys cannot preserve members as workspace admins, so do not plan an admin mapping rotation around preserving members through this endpoint (use the dashboard instead). There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.

## Supported Types

### KeepMembersEnum

```go theme={null}
keepMembers := operations.CreateKeepMembersKeepMembersEnum(operations.KeepMembersEnum{/* values here */})
```

###

```go theme={null}
keepMembers := operations.CreateKeepMembersBoolean(bool{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go theme={null}
switch keepMembers.Type {
	case operations.KeepMembersTypeKeepMembersEnum:
		// keepMembers.KeepMembersEnum is populated
	case operations.KeepMembersTypeBoolean:
		// keepMembers.Boolean is populated
}
```
