Deleting Services - AWS Cloud Map

Deleting Services

Before you can delete a service, you must deregister all service instances that were registered using the service. For more information, see Deregistering Service Instances.

To delete a service, perform the following procedure.

AWS Management Console
  1. Sign in to the AWS Management Console and open the AWS Cloud Map console at

  2. In the navigation pane, choose Namespaces.

  3. Choose the option for the namespace that contains the service that you want to delete.

  4. On the Namespace: namespace-name page, choose the option for the service that you want to delete.

  5. Choose Delete.

  6. Confirm that you want to delete the service.

  • Delete a service with the delete-service command (replace the red value with your own).

    aws servicediscovery delete-service --id srv-xxxxxx