Delete Transcript
delete_transcriptRemove a transcription job permanently using its job ID.
Instructions
Delete a transcription job from your GhostMinutes account (destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Transcription job id |
Implementation Reference
- src/tools/delete-transcript.ts:15-36 (handler)The register function that creates and registers the 'delete_transcript' tool on the MCP server, including its handler logic
export function register(server: McpServer, client: GhostMinutesClient): void { server.registerTool( 'delete_transcript', { title: 'Delete Transcript', description: 'Delete a transcription job from your GhostMinutes account (destructive).', inputSchema: z.object({ id: z.string().min(1).describe('Transcription job id'), }), annotations: { readOnlyHint: false, openWorldHint: false }, }, async ({ id }) => { requireAuth(client); const body = await client.deleteTranscript(id); return { content: [{ type: 'text', text: JSON.stringify(body, null, 2) }], structuredContent: jsonStructured(body), }; }, ); } - src/tools/delete-transcript.ts:22-25 (schema)Input validation schema for 'delete_transcript' requiring an 'id' string parameter
inputSchema: z.object({ id: z.string().min(1).describe('Transcription job id'), }), annotations: { readOnlyHint: false, openWorldHint: false }, - src/server.ts:37-37 (registration)Registration of delete_transcript tool in the main server file
registerDeleteTranscript(server, client); - src/client.ts:132-144 (helper)HTTP client method that sends a DELETE request to /mcp/jobs/:id with Bearer token auth
async deleteTranscript(id: string): Promise<unknown> { try { const res = await this.http.delete( `/mcp/jobs/${encodeURIComponent(id)}`, { headers: { Authorization: `Bearer ${this.apiKey}` }, }, ); return this.ensureOk(res); } catch (e) { this.handleThrown(e); } }