delete_request
Permanently delete a short video creation request and all generated videos. This irreversible action does not refund credits.
Instructions
Permanently delete a short creation request and all generated videos. Credits are NOT refunded. This action is irreversible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestId | Yes | The request ID to delete (24-char hex). This action is irreversible and credits are NOT refunded. |
Implementation Reference
- src/tools/delete-request.js:8-22 (registration)Registration of the 'delete_request' MCP tool and its handler logic.
export function registerDeleteRequest(server, client) { server.tool( 'delete_request', 'Permanently delete a short creation request and all generated videos. Credits are NOT refunded. This action is irreversible.', schema, async ({ requestId }) => { try { const result = await client.deleteRequest(requestId); return { content: [{ type: 'text', text: formatDeleteResponse(result) }] }; } catch (error) { return { content: [{ type: 'text', text: formatError(error) }], isError: true }; } } ); } - src/api/client.js:120-122 (handler)The API client implementation that performs the HTTP DELETE request.
async deleteRequest(requestId) { return this._request('DELETE', `/shorts/${requestId}`); } - src/tools/delete-request.js:4-6 (schema)Input schema validation for the 'delete_request' tool.
const schema = { requestId: z.string().regex(/^[0-9a-fA-F]{24}$/).describe('The request ID to delete (24-char hex). This action is irreversible and credits are NOT refunded.'), };