deleteFile Method

 Purpose

You can use this method to delete files attached to records.

 Request URL

XML Format:
https://<APPDOMAIN>/crm/private/xml/Leads/deleteFile?id=Attachment Id

JSON Format:
https://<APPDOMAIN>/crm/private/json/Leads/deleteFile?id=Attachment Id

 Auth Token

Auth Token is an encrypted alphanumeric string that is required to authenticate your CRM account credentials. A valid user's Authentication Token is necessary to access the API. When making an API request, send the authentication token in the Authorization header as shown below:

https://<APPDOMAIN>/crm/private/xml/Leads/deleteFile?id=Attachment Id

Header:

Authorization=1000XXXX65.1000XXXX44.caXXXXXXXXXXXX

(See Using Authentication Token )

 Request Parameters

ParameterData TypeDescription
id*StringSpecify unique ID of the file to be deleted.

* - Mandatory parameter

 Sample Response

<response uri="/crm/private/xml/Leads/deleteFile">
    <success>
        <code>4800</code>
        <message>Attachment deleted successfully.</message>
    </success>
</response>