Skip to content

DELETE /v1/projects/{id}/platforms/voice/profiles/{profileId}

Deletes an additional profile when expectedVersion matches. Assigned profiles require force=true, which atomically removes every stored override so affected lines follow the default. The default can never be deleted. Requires platforms:write bound to the path project.

photon.projects.platforms.deleteVoiceProfile(input: DeleteVoiceProfileInput, options?: RequestOptions): Promise<DeleteVoiceProfileOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
await photon.projects.platforms.deleteVoiceProfile({
  path: {
    id: "id",
    profileId: "profileId",
  },
  query: {
    expectedVersion: 1,
  },
});

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
profileIdstringrequired
expectedVersionintegerrequired
forceDeleteVoiceProfileForceInput

Returns

204 The Voice profile was deleted. No body.

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