Delete service API
This API deletes a service running on zCX or Linux® on IBM® Z.
HTTP method and URI path
DELETE /v3/services/{service_id}
Where:
service_id (required) is the ID of the service. You can get it from the response of the Get services API.
Standard headers
- Content-Type: application/json
- Authorization: <Bearer token>
Required authorizations
- sysadm
Query parameter
|
Parameter |
Type |
Description |
|
deleteData |
String |
Optionally specify service data preservation on host (Default is true): |
Expected response
On completion, the service returns an HTTP response, which includes a status code that indicates whether your request is completed. Status code 200 indicates a successful completion.
Asynchronous operations
Deleting a service will launch an asynchronous operation to clean up service assets on host.
HTTP status codes
|
HTTP status code |
Error response |
Description |
|
401 |
ALNC810E |
Unauthorized to make request |
|
403 |
ALNC403E |
Forbidden (sysadm role required) |
|
404 |
ALNC916E |
Service ID not found |