Assign an existing trace retention policy to a project, or reset the project to the default policy.
This helper only changes the project's assignment. It does not create, retrieve, update, or delete retention policies.
The project and policy assignment.
The project's resulting retention-policy assignment.
import { setProjectRetentionPolicy } from "@arizeai/phoenix-client/projects";await setProjectRetentionPolicy({ projectName: "support-bot", policyId: "UHJvamVjdFRyYWNlUmV0ZW50aW9uUG9saWN5OjI=",});await setProjectRetentionPolicy({ projectId: "UHJvamVjdDox", policyId: null,}); Copy
import { setProjectRetentionPolicy } from "@arizeai/phoenix-client/projects";await setProjectRetentionPolicy({ projectName: "support-bot", policyId: "UHJvamVjdFRyYWNlUmV0ZW50aW9uUG9saWN5OjI=",});await setProjectRetentionPolicy({ projectId: "UHJvamVjdDox", policyId: null,});
Assign an existing trace retention policy to a project, or reset the project to the default policy.
This helper only changes the project's assignment. It does not create, retrieve, update, or delete retention policies.