Delete File
beta().files().delete(FileDeleteParamsparams = FileDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : DeletedFile
/v1/files/{file_id}?beta=true
Delete File
Parameters
Returns
Delete File
Kotlin
package com.anthropic.example
import com.anthropic.client.AnthropicClient
import com.anthropic.client.okhttp.AnthropicOkHttpClient
import com.anthropic.models.beta.files.DeletedFile
import com.anthropic.models.beta.files.FileDeleteParams
fun main() {
val client: AnthropicClient = AnthropicOkHttpClient.fromEnv()
val deletedFile: DeletedFile = client.beta().files().delete("file_id")
}{
"id": "id",
"type": "file_deleted"
}Returns Examples
{
"id": "id",
"type": "file_deleted"
}