Delete files from collection
DELETE/api/v1/collections/:collection-id/files
Delete files from a collection. Only files not managed by connectors can be deleted.
Request
Path Parameters
Collection ID
- application/json
Body
Possible values: >= 1
, <= 100
List of file IDs to remove from the collection
Responses
- 204
- 401
- 403
- 404
- 422
No content is returned when files are successfully deleted
Unauthorized request
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
Human readable error message
Further details on the error
{
"error": {
"message": "string"
}
}
Forbidden collection, user does not have sufficient permissions to access the collection
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
Human readable error message
Further details on the error
{
"error": {
"message": "string"
}
}
Collection not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
Human readable error message
Further details on the error
{
"error": {
"message": "string"
}
}
Invalid request, e.g. trying to delete files managed by connectors
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
Human readable error message
Further details on the error
{
"error": {
"message": "string"
}
}