Skip to content

DELETE /v1/projects/{projectId}

Starts deletion of the identified project using a credential authorized for project management. Inspect the documented response and use getProjectClosureStatus with the organization and project identifiers to read closure progress. A project API key is not an accepted credential for this operation.

photon.projects.delete(input: DeleteProjectInput, options?: RequestOptions): Promise<DeleteProjectOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.delete({
  path: {
    projectId: "projectId",
  },
  headers: {
    idempotencyKey: "idempotencyKey",
  },
});
{
  "agentProfile": {
    "avatarUrl": "https://example.com",
    "firstName": "string",
    "lastName": null
  },
  "billingInitialization": "pending",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "deletedAt": null,
  "name": "string",
  "organizationId": "string",
  "projectId": "string",
  "slug": "string",
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

Idempotency-Keystringrequired

Identifies one logical mutation across retries.

projectIdstringrequired

Returns

200 The deleted project tombstone. Project

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

agentProfileAgentProfilerequired
billingInitializationProjectBillingInitialization
createdAtstring (date-time)required
deletedAtstring (date-time) | nullrequired
namestringrequired
organizationIdstringrequired
projectIdstringrequired
slugstringrequired
updatedAtstring (date-time)required