Help Center/ ServiceStage/ API Reference (ME-Abu Dhabi Region)/ CSE API/ Deleting Static Information About a Microservice
Updated on 2023-06-25 GMT+08:00

Deleting Static Information About a Microservice

Function

This API is used to delete the definition and related information about a microservice, and deregister all instances of the microservice.

URI

DELETE /v4/{project_id}/registry/microservices/{serviceId}

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Fixed value: default.

serviceId

String

Yes

Microservice ID, which must be unique.

The value must be 1 to 64 characters long.

Regular expression: ^.*$

Table 2 Query parameters

Parameter

Type

Mandatory

Description

force

Boolean

No

Whether to forcibly delete information about a microservice. Options:
  • true: Forcibly delete such information.
  • false: Do not forcibly delete such information.

If the value is true, all service instances are automatically deregistered and related service dependencies are deleted. If the value is not specified and the microservice has instances, the microservice cannot be deleted.

Request

None

Response

Response parameters

None

Example

Example request

DELETE /v4/default/registry/microservices/e0f0da073f2c91e8979a89ff2d7c69t6

Example response

None

Status Code

See Status Codes.

Error Code

See CSE Error Codes.