Permanent Delete File/Folder
This API permanently deletes a file or a folder from the trash folder.
Endpoints
OAuth Scope
WorkDrive.files.UPDATECopied!
curl --request PATCH \
--url https://www.zohoapis.com/workdrive/api/v1/files/{resource_id} \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/vnd.api+json' \
--data '{"data":{"attributes":{"status":"61"},"type":"files"}}'Path Parameters
resource_idstring(Required)
The unique ID of the file/folder.
Request Body
application/vnd.api+jsondataJSON Object(Required)
Hide Sub-Attributes
attributesJSON Object(Required)
Hide Sub-Attributes
statusinteger(Required)
Allowed status value:
typestring(Required)
The JSON:API resource type. Always "files".
Allowed Values :
Show Values ▾
filesCopied!
Copy all as JSON Array
{
"data": {
"attributes": {
"status": "61"
},
"type": "files"
}
}
{
"data": [
{
"id": "ly9zm3c10f18ca7e3422db10f5b335d33b0cc",
"type": "files",
"attributes": {
"modified_by_zuid": "747938014",
"is_locked": false,
"conv_engine_type": 1,
"is_fillable_resource": false,
"is_published": false,
"destination_id": "ly9zme5724e019a8e4cb48632945b1296be0a",
"storage_info": {
"size": "92.0 KB",
"storage_used": "92.0 KB",
"files_count": 0,
"folders_count": 0,
"size_in_bytes": 94427,
"storage_used_in_bytes": 94427
},
"type": "image",
"created_time_i18": "Apr 12, 9:45 PM",
"modified_time_in_millisecond": 1618295803610,
"opened_time": "Apr 12, 9:45 PM",
"status_change_time": "Apr 13, 12:06 PM",
"download_url": "https://download-accl.zoho.com/v1/workdrive/download/ly9zm3c10f18ca7e3422db10f5b335d33b0cc",
"comment_badge_count": 0,
"is_app_associated": false,
"created_time": "Apr 12, 9:45 PM",
"lock_status": 2,
"is_folder": false,
"resource_type": 2501,
"is_email_in_upload": false,
"display_attr_name": "Screenshot from 2021-04-09 11-30-24.png",
"user_access_time": "Apr 12, 9:45 PM",
"created_by": "Zylker Creation",
"display_html_name": "Screenshot from 2021-04-09 11-30-24.png",
"labels": [],
"user_access_time_i18": "Apr 12, 9:45 PM",
"org_id": "ly9zmae16b43c258f458a9a57ac02c4f8d763",
"parent_id": "ly9zme5724e019a8e4cb48632945b1296be0a",
"name": "Screenshot from 2021-04-09 11-30-24.png",
"status_change_time_in_millisecond": 1618295803610,
"permalink": "https://www.zohoapis.com/workdrive/file/ly9zm3c10f18ca7e3422db10f5b335d33b0cc",
"favorite": false,
"new_badge_count": 0,
"status": 61,
"modified_time_i18": "Apr 13, 12:06 PM",
"opened_time_i18": "Apr 12, 9:45 PM",
"extn": "png",
"user_access_time_in_millis": 1618244131914,
"shortcut_link": "",
"status_change_time_i18": "Apr 13, 12:06 PM",
"description": "",
"uploaded_time_in_millisecond": 1618244131917,
"thumbnail_url": "https://previewengine-accl.zoho.com/thumbnail/WD/ly9zm3c10f18ca7e3422db10f5b335d33b0cc",
"title": "",
"modified_time": "Apr 13, 12:06 PM",
"library_id": "ly9zme5724e019a8e4cb48632945b1296be0a",
"icon_class": "img",
"created_time_in_millisecond": 1618244131914,
"owner": "747937818",
"creator": "747938014",
"capabilities": {
"can_read": false,
"can_share": false,
"can_remove_share": false,
"can_delete": false,
"can_edit": false,
"can_upload_files": false,
"can_trash": false,
"can_rename": false,
"can_restore": false,
"can_copy": false,
"can_move": false,
"can_zip": false,
"can_download": false,
"can_emailattach": false,
"can_publish": false,
"can_create_task": false,
"can_share_support": false,
"can_label": true,
"can_checkout": false,
"can_cancel_checkout": false,
"can_discard_checkout": false,
"can_checkin": false,
"can_read_comment": false,
"can_create_comment": false,
"can_trash_files": false
},
"uploaded_time_i18": "Apr 12, 9:45 PM",
"is_external_upload": false,
"watch_preference": {
"watch": false,
"notifyemail": false,
"notifybell": false
},
"opened_time_in_millisecond": 1618244131914,
"edit_badge_count": 0,
"share_data": [],
"data_template_id_to_mandate": "",
"uploaded_time": "Apr 12, 9:45 PM",
"has_folders": false,
"service_type": "upload",
"recent_action": "last_modified_time",
"display_url_name": "Screenshot+from+2021-04-09+11-30-24.png",
"is_unread": false,
"modified_by": "Zylker Creation",
"embed_props": {}
},
"relationships": {
"folders": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/folders",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/folders"
}
},
"comments": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/comments",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/comments"
}
},
"previewinfo": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/previewinfo",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/previewinfo"
}
},
"unzip": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/unzip",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/unzip"
}
},
"publiclink": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/publiclink",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/publiclink"
}
},
"resourceproperty": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/resourceproperty",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/resourceproperty"
}
},
"parentfolders": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/parentfolders",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/parentfolders"
}
},
"shortcut": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/shortcut",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/shortcut"
}
},
"importfile": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/importfile",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/importfile"
}
},
"versions": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/versions",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/versions"
}
},
"supportshare": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/supportshare",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/supportshare"
}
},
"permissions": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/permissions",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/permissions"
}
},
"timeline": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/timeline",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/timeline"
}
},
"files": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/files",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/files"
}
},
"saveastemplate": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/saveastemplate",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/saveastemplate"
}
},
"links": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/links",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/links"
}
},
"copy": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/copy",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/copy"
}
},
"previewzip": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/previewzip",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/previewzip"
}
},
"tasks": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/tasks",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/tasks"
}
},
"breadcrumbs": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/breadcrumbs",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/breadcrumbs"
}
},
"entity": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/entity",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/entity"
}
},
"custommetadata": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/custommetadata",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/custommetadata"
}
},
"statistics": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/statistics",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/statistics"
}
},
"appdata": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/relationships/appdata",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc/appdata"
}
}
},
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm3c10f18ca7e3422db10f5b335d33b0cc"
}
}
],
"meta": {
"search_result_count": 0
}
}
{
"errors": [
{
"id": "R1304",
"title": "The resourceId must be a writer file type"
}
]
}
{
"errors": [
{
"id": "R105",
"title": "Error while restoring files"
}
]
}
{
"errors": [
{
"id": "R004",
"title": "Invalid resourceId"
}
]
}
{
"errors": [
{
"id": "R002",
"title": "Folder with same name exists in the workspace. Please use a different name"
}
]
}
{
"errors": [
{
"id": "R101",
"title": "File trash in progress. Try Later"
}
]
}
{
"errors": [
{
"id": "R102",
"title": "Files restore in progress. Try later"
}
]
}
{
"errors": [
{
"id": "R023",
"title": "Invalid name"
}
]
}
{
"errors": [
{
"id": "R507",
"title": "Copy action processing for this resource. So cannot copy or move this resource."
}
]
}
{
"errors": [
{
"id": "R008",
"title": "Unauthorized access"
}
]
}
{
"errors": [
{
"id": "F7003",
"title": "Invalid OAuth token"
}
]
}
{
"errors": [
{
"id": "A014",
"title": "API not enabled for this file type"
}
]
}
{
"errors": [
{
"id": "R508",
"title": "Move out of the defined scope is not allowed for the user."
}
]
}
{
"errors": [
{
"id": "R008",
"title": "Insufficient permissions"
}
]
}
{
"errors": [
{
"id": "T031",
"title": "Team is integrated with other app or bundle"
}
]
}
{
"errors": [
{
"id": "R1300",
"title": "Permanent Delete not possible as Data on Hold"
}
]
}
{
"errors": [
{
"id": "R004",
"title": "Invalid resourceId passed"
}
]
}
{
"errors": [
{
"id": "T001",
"title": "No Such Team"
}
]
}
{
"errors": [
{
"id": "R102",
"title": "Files restore in progress. Try later"
}
]
}
{
"errors": [
{
"id": "R1303",
"title": "The Index layout file is already mapped to the parent"
}
]
}
{
"errors": [
{
"id": "R961",
"title": "Marking file as final action failed"
}
]
}
{
"errors": [
{
"id": "R271",
"title": "Trash action processing for this resource. So, you cannot restore this resource."
}
]
}
{
"errors": [
{
"id": "R402",
"title": "Document is not locked yet"
}
]
}
{
"errors": [
{
"id": "R403",
"title": "This resource cannot be locked"
}
]
}
{
"errors": [
{
"id": "R103",
"title": "Error while trash files"
}
]
}
{
"errors": [
{
"id": "R400",
"title": "File has been locked already"
}
]
}
{
"errors": [
{
"id": "R104",
"title": "Error while delete files"
}
]
}
{
"errors": [
{
"id": "R401",
"title": "You are not authorized to unlock the file"
}
]
}
{
"errors": [
{
"id": "F283",
"title": "Folder is getting copied and cannot trash the resource"
}
]
}
{
"errors": [
{
"id": "V006",
"title": "Can't checkout subversion"
}
]
}
{
"errors": [
{
"id": "R509",
"title": "Source and destination cannot be the same while move."
}
]
}
{
"errors": [
{
"id": "F000",
"title": "General exception"
}
]
}
{
"errors": [
{
"id": "F221",
"title": "Resource has been Trashed already"
}
]
}
{
"errors": [
{
"id": "F268",
"title": "Copy action processing for this resource. So, you cannot trash this resource."
}
]
}
{
"errors": [
{
"id": "R012",
"title": "Resource is not in active status to process this action"
}
]
}
{
"errors": [
{
"id": "Z010",
"title": "Myfolder Storage limit exceeds"
}
]
}
{
"errors": [
{
"id": "Z011",
"title": "Storage limit exceeds"
}
]
}
{
"errors": [
{
"id": "R514",
"title": "Moving resource across space not allowed."
}
]
}
{
"errors": [
{
"id": "R217",
"title": "Error while add favorite"
}
]
}
{
"errors": [
{
"id": "R515",
"title": "My Space storage limit exceeded, cannot move resource into my folder."
}
]
}
{
"errors": [
{
"id": "R218",
"title": "Error while remove favorite"
}
]
}
{
"errors": [
{
"id": "R513",
"title": "Move not Allowed As Data on Hold."
}
]
}
{
"errors": [
{
"id": "R510",
"title": "User does not have permission to move this resource."
}
]
}
{
"errors": [
{
"id": "R213",
"title": "Invalid operation"
}
]
}
{
"errors": [
{
"id": "F210",
"title": "Invalid move operation destination or source is of invalid resource type."
}
]
}
{
"errors": [
{
"id": "F211",
"title": "Move resource is restricted for Zia Hub."
}
]
}
{
"errors": [
{
"id": "F277",
"title": "Trying to move a hidden resource type."
}
]
}
{
"errors": [
{
"id": "R516",
"title": "Move action failed as storage limit exceeded in the destination Team Folder."
}
]
}
{
"errors": [
{
"id": "F213",
"title": "Exception while restore resource."
}
]
}
{
"errors": [
{
"id": "F237",
"title": "Resource can't be moved into same resource or its sub resource."
}
]
}
{
"errors": [
{
"id": "F415",
"title": "Trash operation not allowed."
}
]
}
{
"errors": [
{
"id": "V005",
"title": "Invalid version info"
}
]
}
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.