Skip to content

Delete a file ​

Permanently removes an uploaded file.

Request ​

FieldValue
MethodDELETE
URLhttps://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/lead/{leadId}/file
AuthBearer token (Sync-typed). See Authentication.

Query parameters ​

NameTypeRequiredDescription
pathstringyesThe path of the file to delete.

Response ​

204 No Content, with an empty body.

Actions are not updated

Deleting a file does not remove or update actions and field values that reference it. Those keep pointing at a path that no longer resolves, and a download URL for it will return 404.

Errors ​

StatusCause
400path missing.
401Missing or invalid token.
403path does not belong to this lead.
404The lead does not exist, or no file exists at path.