Skip to main content

Delete Project

Endpoint​

DELETE https://api.verifik.co/v3/projects/{id}

Permanently delete a project and all its associated project flows. This action cannot be undone.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params​

NameTypeRequiredDescription
idstringYesThe unique identifier of the project to delete

Request​

const fetch = require("node-fetch");

async function run() {
const projectId = "64a1b2c3d4e5f6789012345";
const res = await fetch(`https://api.verifik.co/v3/projects/${projectId}`, {
method: "DELETE",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(await res.json());
}

run();

Response​

{
"data": {
"_id": "64a1b2c3d4e5f6789012345",
"name": "Deleted Project",
"status": "deleted"
}
}

Notes​

  • Irreversible Action: Project deletion is permanent and cannot be undone. All associated data will be permanently removed from the system.
  • Cascade Deletion: When a project is deleted, the following associated resources are also removed: Project Flows, Webhooks, Project Members, and Configuration Data.
  • Pre-deletion Checks: Before deleting, ensure no users are currently going through the KYC process, export any necessary data, check for external system dependencies, and ensure deletion complies with data retention requirements.
  • Project Status: Only projects with status draft or paused can be deleted. Active projects must be paused first.
  • Safe Deletion: Consider setting the project status to "paused" first to prevent new users from starting the process while you prepare for deletion.
  • Data Retention: Ensure you have exported any necessary data before deletion, as this action permanently removes all project data.