Delete Version

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

This API deletes a specific version of a file. Version id is created when a user creates a new version of the file.

Endpoints

OAuth Scope

WorkDrive.files.DELETECopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request DELETE \
  --url https://www.zohoapis.com/workdrive/api/v1/versions/{version_id} \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Path Parameters

version_idstring(Required)

The value of the version to be deleted.

Response Example

F6005

V002

V001

U001

204
204
400
401
405
500
Copied!
204 No Content
  {
    "errors": [
      {
        "id": "F6005",
        "title": "Param length more than expected"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "V002",
        "title": "Resource version locked by another user"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "V001",
        "title": "Top version could not delete"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "U001",
        "title": "User not logged in"
      }
    ]
  }
                
Show full