delete_website
Remove a website from your workspace by providing its record ID.
Instructions
Delete a website from the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record_id | Yes | Website record ID to delete |
Implementation Reference
- server/index.js:379-382 (handler)The handler function for the 'delete_website' tool. It calls the API endpoint /v1/workspace/website/delete with a DELETE method and the record_id parameter.
async ({ record_id }) => { const data = await apiCall("/v1/workspace/website/delete", "DELETE", { record_id }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - server/index.js:375-377 (schema)Input schema for the 'delete_website' tool. Accepts a single string parameter 'record_id' describing the website record ID to delete.
{ record_id: z.string().describe("Website record ID to delete"), }, - server/index.js:372-383 (registration)Registration of the 'delete_website' tool using server.tool() with the name 'delete_website', a description, schema, metadata, and handler function.
server.tool( "delete_website", "Delete a website from the workspace.", { record_id: z.string().describe("Website record ID to delete"), }, { title: "Delete Website", readOnlyHint: false, destructiveHint: true, openWorldHint: false }, async ({ record_id }) => { const data = await apiCall("/v1/workspace/website/delete", "DELETE", { record_id }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } ); - server/index.js:112-123 (helper)The apiCall helper function used by the delete_website handler to make HTTP requests to the Lindo AI API.
async function apiCall(path, method, body) { const url = `${BASE_URL}${path}`; const res = await fetch(url, { method, headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json", }, ...(body ? { body: JSON.stringify(body) } : {}), }); return res.json(); }