You can call the DeleteService operation to delete a service.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common parameters.
| Name | Type | Required | Example | Description |
| If-Match | String | No | e19d5cd5af0378da05f63f891c74**** | This ensures that the modified service is the same as the intended service. Obtain this value from the response of the CreateService, UpdateService, or GetService operation. |
Request syntax
DELETE /services/{serviceName} HTTP/1.1
Request parameters
| Name | Type | Position | Required | Example | Description |
| serviceName | String | Path | Yes | service_name | The name of the service to delete. |
No response parameters are returned.
Examples
Sample request
DELETE /services/service_name HTTP/1.1
Host:fc-ram.aliyuncs.com
If-Match:e19d5cd5af0378da05f63f891c74****
Content-Type:application/json
Sample success response
JSON format
HTTP/1.1 200 OK
Error codes
For a list of error codes, visit the API Error Center.