# Can Instance Affinity be Toggled?

## Problem

### One or more instances were provisioned as part of a Server Group which has an affinity or anti-affinity policy applied. Is it possible to toggle this policy or otherwise remove the instance(s) from the group?

## Environment

* Platform9 Managed OpenStack - All Versions
* Nova
* Anti-Affinity/Server Groups

## Answer

### No – the server group would need to be deleted, at which point the instances would no longer be bound by the policy. The policy cannot be changed or otherwise toggled retroactively and individual instance members cannot be removed.

## Additional Information

### [OpenStack Docs – ServerGroupAntiAffinityFilter](https://docs.openstack.org/nova/rocky/admin/configuration/schedulers.html#servergroupantiaffinityfilter)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/frequently-asked-questions/can-instance-affinity-be-toggled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
