delete_study
Permanently delete a study and all associated data while releasing unused reserved credits.
Instructions
Permanently deletes a study and all associated data. Releases unused reserved credits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| study_id | Yes |
Implementation Reference
- src/index.ts:202-213 (handler)The handler for delete_study tool, which calls the Usercall API with DELETE method.
async (input) => { const payload = await callUsercallApi( `/api/v1/agent/studies/${input.study_id}`, { method: "DELETE" }, ); return result( appendNote( payload, "Study permanently deleted. All recordings and data have been removed. Unused credits have been released.", ), ); }, - src/index.ts:199-201 (schema)Input schema for delete_study, requiring a UUID study_id.
{ study_id: z.string().uuid(), }, - src/index.ts:196-198 (registration)Registration of the delete_study tool.
server.tool( "delete_study", "Permanently deletes a study and all associated data. Releases unused reserved credits.",