Layers
Partner APIAPI referenceProjects

DELETE /v1/projects/:id

Soft-archive a project. Reversible via PATCH.

View as Markdown
DELETE/v1/projects/:id
Phase 1stable
Auth
Bearer
Scope
projects:write

Flips status to archived. The project's data is retained — layers, influencers, content, metrics, social accounts all stay queryable — but no new work starts: cron-triggered content generation pauses, scheduled posts stop dispatching, and the scheduler skips the project on its next tick.

Archive is reversible. To reactivate, PATCH with status: "active". Use this instead of a hard delete whenever the end-customer may return; it keeps your references and analytics intact.

Path
  • id
    stringrequired
    Project ID.

Example request

curl -X DELETE https://api.layers.com/v1/projects/prj_01HX9Y7K8M2P4RSTUV56789AB \
  -H "Authorization: Bearer lp_live_01HX9Y6K7EJ4T2_4QZpN..."
await layers.projects.archive("prj_01HX9Y7K8M2P4RSTUV56789AB");
layers.projects.archive("prj_01HX9Y7K8M2P4RSTUV56789AB")

Response

200OK
{
  "id": "8a1639a0-ce5b-4565-9ed1-c55ed2d82dc6",
  "status": "archived",
  "archivedAt": "2026-04-18T19:11:02.413Z",
  "canceledScheduledPosts": 0
}

canceledScheduledPosts is the count of pending scheduled posts that were canceled as part of the archive. Already-published posts are unaffected.

Archive is idempotent — a second DELETE against an already-archived project returns 200 with a refreshed archivedAt, not 409.

Errors

StatusCodeWhen
401UNAUTHENTICATEDMissing or invalid key.
403FORBIDDEN_SCOPEKey lacks projects:write.
404NOT_FOUNDProject does not exist in the key's organization.
422VALIDATION:id is not a UUID, or the optional archive body fails validation.
429RATE_LIMITEDWrite budget exhausted.

See also

On this page