

# Stop sharing a Amazon Cloud Map namespace
<a name="sharing-unshare"></a>

When a namespace is no longer shared, the namespace and any services and instances associated with it can no longer be accessed by consumer Amazon Web Services accounts. This includes resources created in the namespace by consumers when they had access to the namespace.

To stop sharing a namespace that you own, you must remove it from the resource share. You can do this using the Amazon RAM console or the Amazon CLI.

------
#### [ Amazon RAM console ]

**To stop sharing a namespace that you own using the Amazon RAM console**  
See [Updating a Resource Share](https://docs.amazonaws.cn/ram/latest/userguide/working-with-sharing-update.html) in the *Amazon RAM User Guide*.

------
#### [ Amazon CLI ]

**To stop sharing a namespace that you own using the Amazon CLI**  
Use the [disassociate-resource-share](https://docs.amazonaws.cn/cli/latest/reference/ram/disassociate-resource-share.html) command.

------