**To unassign a registered instance from its layers**

The following ``unassign-instance`` command unassigns an instance from its attached layers. ::

  aws opsworks --region us-east-1 unassign-instance --instance-id 4d6d1710-ded9-42a1-b08e-b043ad7af1e2

**Note**: AWS OpsWorks CLI commands should set the region to us-east-1 regardless of the stack's location.

**Output**: None.

**More Information**

For more information, see `Unassigning a Registered Instance`_ in the *AWS OpsWorks User Guide*.

.. _`Unassigning a Registered Instance`: http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-unassign.html

