deleteFile Method

deleteFile Method

Purpose

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

Request URL

XML Format:
https://crm.zoho.com/crm/private/xml/Leads/deleteFile?authtoken=Auth Token&scope=crmapi&id=Attachment Id

JSON Format:
https://crm.zoho.com/crm/private/json/Leads/deleteFile?authtoken=Auth Token&scope=crmapi&id=Attachment Id

Request Parameters

Parameter Data Type Description
authtoken* String Encrypted alphanumeric string to authenticate your Zoho credentials.
scope* String Specify the value as crmapi
id* String Specify 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>

    • Related Articles

    • deleteFile Method - Comparison

      Purpose To delete a file attached to a record. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/Leads/deleteFile?authtoken=AuthToken&scope=crmapi&sid=Attachment Id Version 2.0: URL: ...
    • deleteRecords Method

      Table of Contents Purpose Request URL Request Parameters Example Purpose You can use this method to delete the selected record (you must specify unique ID of the record) and move to the recycle bin. Note: This method is availablefor all modules. ...
    • downloadPhoto Method

       Purpose You can use this method to download the photos of Leads or Contacts.  Request URL XML Format: For Leads: https://crm.zoho.com/crm/private/xml/Leads/downloadPhoto?authtoken=Auth Token&scope=crmapi&id=RecordID For Contacts: ...
    • searchRecords Method

       Purpose You can use the searchRecords method to get the list of records that meet your search criteria.  Request URL XML Format: https://crm.zoho.com/crm/private/xml/Leads/searchRecords?authtoken=Auth Token&scope=crmapi&criteria=(((Last ...
    • delink Method

       Purpose You can use the delink method to dissassociate the relationship between parent and child records. For example, cases or tasks that are associated with account can be delinked, so that cases or tasks can be associated with another account ...