delete_service
Remove a service from the Coolify platform by specifying its UUID. When enabled, requires confirmation for safety.
Instructions
Delete a service. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Service UUID | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:330-332 (handler)Handler logic for the delete_service tool. Validates the 'uuid' parameter and calls DELETE on the Coolify API /services/{uuid} endpoint.case 'delete_service': requireParam(args, 'uuid'); return client.delete(`/services/${args.uuid}`);
- src/tools/definitions.ts:972-982 (schema)Input schema and metadata for the delete_service tool, defining required 'uuid' and optional 'confirm' parameters.{ name: 'delete_service', description: 'Delete a service. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Service UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] }
- src/index.ts:36-38 (registration)Tool registration in MCP server: delete_service is included in the list of tools provided via getToolDefinitions().this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/tools/definitions.ts:59-59 (helper)delete_service listed as a dangerous operation requiring confirmation.'delete_service',
- src/tools/definitions.ts:81-81 (helper)Warning message for the delete_service dangerous operation.delete_service: 'This will permanently delete the service and all its data.',