Delete a file
Permanently removes an uploaded file.
Request
| Field | Value |
|---|---|
| Method | DELETE |
| URL | https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/lead/{leadId}/file |
| Auth | Bearer token (Sync-typed). See Authentication. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | string | yes | The 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
| Status | Cause |
|---|---|
400 | path missing. |
401 | Missing or invalid token. |
403 | path does not belong to this lead. |
404 | The lead does not exist, or no file exists at path. |