• Delete an experiment by ID.

    Important: This operation permanently deletes the experiment and all its associated runs, evaluations, and annotations.

    Behavior:

    • Deletes the experiment and all its data
    • Returns successfully if experiment is found and deleted
    • Throws error if experiment is not found (404) or other errors occur

    Parameters

    Returns Promise<void>

    Promise that resolves when the experiment is successfully deleted

    Error if the experiment is not found or deletion fails

    import { deleteExperiment } from "@arizeai/phoenix-client/experiments";

    await deleteExperiment({
    experimentId: "exp_123",
    });