aws ds unshare-directory
Stops the directory sharing between the directory owner and consumer accounts. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--directory-idThe identifier of the Managed Microsoft AD directory that you want to stop sharing.--unshare-targetIdentifier for the directory consumer account with whom the directory has to be unshared.