Skip to main content

Delete revision

note

[Since 2017.02]

A request to delete file’s revision. It’s impossible to remove a revision of a file opened for collaboration.

DELETE /api/v1/files/{fileId}/revisions/{revId}
  1. Path parameters
ParameterDescription
fileIdId of a file
revIdId of a revision
  1. Example request
curl 'http://localhost:8080/api/v1/files/189387417/revisions/189387727' –I \
-X DELETE \
-H 'X-co-auth-token: e938ba0fa10bd53f56e11ce86d355a7d'
  1. Example response
HTTP/1.1 204 No Content
X-co-request-id: 4e4d794444393838666b714b53474a55