ce_delete_app
Delete a Code Engine application by providing the project ID and app name.
Instructions
Delete a Code Engine application
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| app_name | Yes | ||
| region | No |
Implementation Reference
- src/tools/code-engine/index.ts:67-72 (handler)The handler function for the 'ce_delete_app' tool. It takes project_id, app_name, and optional region, checks write permission, makes a DELETE API call to the Code Engine API to delete the app, and returns a success message.
server.tool("ce_delete_app", "Delete a Code Engine application", { project_id: z.string(), app_name: z.string(), region: z.string().optional(), }, async (p) => safeTool(async () => { w(); await client.delete(`${base(p.region||r)}/projects/${p.project_id}/apps/${p.app_name}`); return {message:"App deleted"}; })); - src/tools/code-engine/index.ts:68-68 (schema)Input schema for ce_delete_app: requires project_id (string), app_name (string), and optional region (string).
project_id: z.string(), app_name: z.string(), region: z.string().optional(), - src/tools/code-engine/index.ts:67-72 (registration)Tool registration via server.tool('ce_delete_app', ...) inside registerCodeEngineTools function.
server.tool("ce_delete_app", "Delete a Code Engine application", { project_id: z.string(), app_name: z.string(), region: z.string().optional(), }, async (p) => safeTool(async () => { w(); await client.delete(`${base(p.region||r)}/projects/${p.project_id}/apps/${p.app_name}`); return {message:"App deleted"}; })); - src/server.ts:62-63 (registration)registerCodeEngineTools is called from createServer in server.ts, which registers all Code Engine tools including ce_delete_app.
registerCodeEngineTools(server, client, config); console.error(` ✓ Code Engine (16 tools)`); - src/lib/api-client.ts:144-146 (helper)The client.delete method used by the handler to issue the HTTP DELETE request to the Code Engine API.
async delete<T = unknown>(url: string, queryParams?: Record<string, string | number | boolean | undefined>): Promise<T> { return this.request<T>(url, { method: "DELETE", queryParams }); }