ce_delete_job
Delete an IBM Cloud Code Engine job by providing its name and project ID. Optionally specify the region.
Instructions
Delete a Code Engine job
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| job_name | Yes | ||
| region | No |
Implementation Reference
- src/tools/code-engine/index.ts:92-97 (registration)Registration of the 'ce_delete_job' tool via server.tool() on the McpServer instance.
server.tool("ce_delete_job", "Delete a Code Engine job", { project_id: z.string(), job_name: z.string(), region: z.string().optional(), }, async (p) => safeTool(async () => { w(); await client.delete(`${base(p.region||r)}/projects/${p.project_id}/jobs/${p.job_name}`); return {message:"Job deleted"}; })); - src/tools/code-engine/index.ts:92-93 (schema)Input schema: requires project_id (string), job_name (string), and optional region (string).
server.tool("ce_delete_job", "Delete a Code Engine job", { project_id: z.string(), job_name: z.string(), region: z.string().optional(), - src/tools/code-engine/index.ts:94-96 (handler)Handler function: calls client.delete() to delete the job via the Code Engine API, then returns {message:'Job deleted'}.
}, async (p) => safeTool(async () => { w(); await client.delete(`${base(p.region||r)}/projects/${p.project_id}/jobs/${p.job_name}`); return {message:"Job deleted"};