Permanently delete a note template generation job and all associated data. This action cannot be undone.
This action is irreversible. Once a template generation job is deleted, it cannot be recovered. Make sure you have saved any important results before deletion.
Delete old template generation jobs that are no longer needed:
Copy
async function cleanupOldTemplateJobs() { // Assuming you have a way to list jobs (not implemented in current API) // This is a conceptual example const oldJobIds = [ 'template_old123', 'template_old456', 'template_old789' ]; for (const jobId of oldJobIds) { try { await fetch(`https://api.sully.ai/alpha/note-templates/${jobId}`, { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }); console.log(`Deleted job: ${jobId}`); } catch (error) { console.error(`Failed to delete job ${jobId}:`, error); } }}