Skip to content

Delete Service

servicediscovery_delete_service R Documentation

Deletes a specified service and all associated service attributes

Description

Deletes a specified service and all associated service attributes. If the service still contains one or more registered instances, the request fails.

Usage

servicediscovery_delete_service(Id)

Arguments

Id

[required] The ID or Amazon Resource Name (ARN) of the service that you want to delete. If the namespace associated with the service is shared with your Amazon Web Services account, specify the service ARN. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing.

Value

An empty list.

Request syntax

svc$delete_service(
  Id = "string"
)

Examples

## Not run: 
# Example: Delete service
svc$delete_service(
  Id = "srv-p5zdwlg5uvvzjita"
)

## End(Not run)