Delete File
beta().files().delete(FileDeleteParamsparams = FileDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : DeletedFile
/v1/files/{file_id}
Delete File
Parameters
Returns
Delete File
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")
}Response 200
{
"id": "id",
"type": "file_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "file_deleted"
}