Skip to contents

Delete a file from Anthropic's storage.

Usage

claude_file_delete(file_id, ...)

Arguments

file_id

Character. The file ID to delete.

...

Additional arguments passed to ellmer::claude_file_delete().

Value

Invisibly returns NULL on success.

Details

Permanently deletes a file from your organization's storage. This action cannot be undone.

API Reference: https://platform.claude.com/docs/en/build-with-claude/files

Examples

if (FALSE) { # \dontrun{
file <- claude_file_upload("temp.pdf")
claude_file_delete(file$id)
} # }