DELETE
/
v3
/
projects
/
{projectId}
Delete project
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Body

application/json

Request body for deleting a project

Response

200
application/json

Project deleted successfully

Response for project deletion