To enable the Compliance API, see the setup guide.
Set up the Compliance API删除文件
DELETE/v1/compliance/apps/chats/files/{claude_file_id}
永久删除特定文件。这是一个破坏性操作,无法撤销。
Path parameters
Headers
Returns
删除文件
cURL
curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
-X DELETE \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"id": "claude_file_xyz789",
"type": "claude_file_deleted"
}Returns Examples
Response 200
{
"id": "claude_file_xyz789",
"type": "claude_file_deleted"
}