Javascript
const url = 'https://api.supermemory.ai/v3/projects/{projectId}'; const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"action":"move"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "success": true, "message": "Project deleted successfully", "documentsAffected": 10 }
Delete a project and either move or delete its documents
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request body for deleting a project
Project deleted successfully
Response for project deletion
Was this page helpful?