

# Unshare an Image Builder resource from Amazon RAM
<a name="manage-shared-resources-unshare"></a>

To unshare an Image Builder resource that you own, such as a shared component, image, or recipe, you must remove it from the Amazon Resource Access Manager resource share. You can do this using the Amazon RAM console or the Amazon CLI.

**Note**  
Owners cannot delete a shared resource until it is no longer shared. An owner cannot unshare these resources until none of the consumers depend on them.

**To unshare a shared component, image, or recipe that you own using the Amazon Resource Access Manager console**  
See [Updating a Resource Share](https://docs.amazonaws.cn/ram/latest/userguide/working-with-sharing.html#working-with-sharing-update) in the *Amazon RAM User Guide*.

**To unshare a shared component, image, or recipe 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 to stop sharing the resource.