Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
The delete_file variant of an apply_patch_call.operation. Identifies the file to remove; no diff is required.

Example Usage

import { ApplyPatchDeleteFileOperation } from "@openrouter/sdk/models";

let value: ApplyPatchDeleteFileOperation = {
  path: "/src/main.ts",
  type: "delete_file",
};

Fields

FieldTypeRequiredDescription
pathstring:heavy_check_mark:N/A
type”delete_file”:heavy_check_mark:N/A