Skip to main content

Delete Project Flow

Endpoint​

DELETE https://api.verifik.co/v3/project-flows/{id}

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

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params​

NameTypeRequiredDescription
idstringYesThe unique identifier of the project flow to delete

Request​

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

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

run();

Response​

{
"data": {
"_id": "64a1b2c3d4e5f6789012346",
"type": "onboarding",
"target": "personal",
"status": "deleted"
}
}

Notes​

  • Irreversible Action: Project flow deletion is permanent and cannot be undone. All associated configuration data will be permanently removed from the system.
  • Soft Delete Behavior: In development environments, project flows are soft-deleted (marked as deleted but remain in database). In production, they are permanently removed.
  • Cascade Deletion: When a project flow is deleted, the following associated resources are also removed: Configuration Data, Webhook References, Integration Settings, and Document Templates.
  • Impact on Parent Project: Deleting a project flow will remove it from the parent project's projectFlows array and may affect the project's overall configuration status.
  • Pre-deletion Checks: Before deleting, ensure no users are currently going through the verification process, check if the parent project depends on this flow, export any necessary configuration data, and verify no external systems depend on this flow.
  • Safe Deletion: Consider setting the project flow 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 configuration data before deletion, as this action permanently removes all flow-specific settings.