Permanently delete a template project

Permanently deletes the project and every template in it.

DELETE
/v1/templates/projects/{id}

Permanently deletes the project and every template in it. Refuses with 409 and reference kind/id pairs while any entry or the project is in use. Repository, workspace, conversations, draft assets, publications and previews are removed through durable cleanup. Sent-message history keeps its snapshots. Newsletter issue projects can only be removed through their topic.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^tproj_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

SuccessResponse

application/json
  1. response
success*boolean
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.templates.deleteProject({  "id": "example"});
Example Response
{  "success": true}

Related documentation