OpenAIFileDeleteResponse

@Serializable
data class OpenAIFileDeleteResponse(val id: String, val obj: String = "file", val deleted: Boolean) : AIDeleteFileResult, Mapper<DeleteApiFileResult>

Response returned after deleting a file from the OpenAI Files API.

Constructors

Link copied to clipboard
constructor(id: String, obj: String = "file", deleted: Boolean)

Properties

Link copied to clipboard

Whether the file was successfully deleted.

Link copied to clipboard
open override val id: String

The ID of the deleted file.

Link copied to clipboard
@SerialName(value = "object")
val obj: String

The object type (always "file").

Functions

Link copied to clipboard
open override fun map(): DeleteApiFileResult
Link copied to clipboard

Returns a human-readable description of the deletion result.