Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_openai/mod.ts>OpenAI#deleteFile

Simple API connection compatible with OpenAI and AzureOpenAI.
Latest
method OpenAI.prototype.deleteFile
import { OpenAI } from "https://deno.land/x/simple_openai@v1.3.2/mod.ts";

Please check OpenAI official document for details.

Examples

Example 1

const result = await openai.deleteFile("file-id");

Parameters

id: string

Returns

Promise<NativeOpenAI.Files.FileDeleted>