PgBeam Docs
Policies

deletePolicyProfile

Delete a policy profile

Deletes a policy profile. Fails if agent credentials still reference it.

Usage

const result = await api.policies.deletePolicyProfile({
  pathParams: { project_id: "prj_xxx", policy_id: "pol_xxx" },
});

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
pathParams.policy_idstringYesUnique policy profile identifier (prefixed, e.g. pol_xxx).

Response

Promise<void> — no content.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.policies.deletePolicyProfile({
  pathParams: { project_id: "prj_xxx", policy_id: "pol_xxx" },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.
409Policy profile is still referenced by agent credentials.

On this page