You can perform a DELETE operation on the population resource to remove it from the environment. The population must not have any associated users before it can be deleted. You can verify that the population resource is empty by calling GET /environments/{environmentId}/populations/{populationId} to view the userCount value.

The sample shows the DELETE /environments/{environmentId}/populations/{populationId} operation to delete the empty population from the specified environment.

When successful, the DELETE request returns a code 204 No Content message.