Skip to content

Delete File Link

Delete the specified file links. Each item identifies the link to remove by its own id (the file-link record ID returned when the link was created) and its linkedRecordType (which determines the link table). Note that the linked record and the file will still exist and need to be deleted separately.

Verb DELETE
Endpoint {base-url}/files/links
Max Page Size N/A

Request Body

{
  "body": [
    {
      "id": 2,
      "linkedRecordType": 3
    }
  ]
}

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

204 - No Content

Response Body

// 204 - No Content

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the specified file links belong to a record in an organization you do not have access to.
404 MISSING_RECORD One or more of the specified file-link id values does not exist.