Function

destroy

Destroys an existing service, optionally requesting that state contained within the service be retained rather than destroyed. A service-error is returned if the retention request cannot be satisfied, or if the service could not be destroyed for any reason.

destroy: func(instance-id: service-instance-id, retain: option​<bool>) -> result​<_, error>;