Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /v1/files/{file_id}
ファイル ID を指定してファイルを永続的に削除します。削除操作は取り消せません。
ヘッダー
| ヘッダー | 必須 | 説明 |
|---|
| Authorization | はい | Bearer $QODER_PAT |
パスパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|
file_id | string | はい | ファイル一意識別子、file_ プレフィックス文字列 |
リクエスト例
curl -X DELETE "https://openapi.qoder.sh/api/v1/cloud/files/file_019e3bb8e4b67b7789e49ca6ecb2aae0" \
-H "Authorization: Bearer $QODER_PAT"
レスポンス例
HTTP 204 No Content
削除成功時は HTTP 204 を返し、レスポンスボディはありません。
エラーレスポンス
| HTTP | type | 説明 |
|---|
| 401 | — | 認証トークンが欠落または無効 |
| 404 | not_found_error | 指定 ID のファイルが存在しない |
エラー例
{
"error": {
"message": "File 'file_nonexistent123' was not found.",
"type": "not_found_error"
},
"type": "error"
}
注意事項
- 削除操作は永続的で、復元できません
- 削除後は一覧 API でこのファイルが返されなくなります
- ファイルが Session から参照されている場合、削除後は Session 内のそのファイルへの参照が無効になります