OpenAIFileDeletedResult
The OpenAIFileDeletedResult class contains the result of a file deletion operation.
Inherits
Propriedades calculadas
| Propriedade | Tipo | Descrição |
|---|---|---|
deleted | OpenAIFileDeleted | Returns the file deletion result from the API response. Returns Null if the response doesn't contain a valid result. |
Exemplo de uso
// Delete a file
var $fileId:="file-abc123"
var $result:=$client.files.delete($fileId; Null)
var $deletionStatus:=$result.deleted
If ($deletionStatus.deleted)
ALERT("File "+$deletionStatus.id+" was successfully deleted")
Else
ALERT("Failed to delete file")
End if