Deactivate segment in environment

Deactivates a segment in the specified environment.