Delete file

DELETE /files/{id}

删除已上传的文件。

Path parameters

  • id string Required

    Format should match the following pattern: ^file-.

Responses

  • 200 application/json

    file deleted

    Hide response attributes Show response attributes object
    • id string

      Format should match the following pattern: ^file-.

    • object string

      Value is file.

    • deleted boolean
  • 404 application/json

    file not found

DELETE /files/{id}
curl \
 -X DELETE https://v5.jinshuju.net/exam/api/files/{id}
Response examples (200)
{
  "id": "file-6757a41ee88e5d8d2a0bbbff",
  "object": "file",
  "deleted": true
}
Response examples (404)
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such File object: invalid"
  }
}