CmdID

CmdID / aws / aws servicediscovery

aws servicediscovery delete-namespace

Deletes a namespace from the current account. AWS CLI reference

2 examples 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

Example 1: To delete a namespace

The following delete-namespace example deletes a namespace.

aws servicediscovery delete-namespace --id ns-abcd1234xmpl5678Identify
--idThe ID or Amazon Resource Name (ARN) of the namespace that you want to delete.
Its output
{
    "OperationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}

To confirm that the operation succeeded, you can run get-operation. For more information, see get-operation .

For more information, see Deleting an AWS Cloud Map namespace in the AWS Cloud Map Developer Guide.

Example 2: To delete a namespace using namespace ARN

The following delete-namespace example deletes a namespace using its ARN.

aws servicediscovery delete-namespace --id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678Identify
--idThe ID or Amazon Resource Name (ARN) of the namespace that you want to delete.
Its output
{
    "OperationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}

For more information, see Deleting an AWS Cloud Map namespace in the AWS Cloud Map Developer Guide.

Options

1 in the AWS CLI reference
--idThe ID or Amazon Resource Name (ARN) of the namespace that you want to delete.