Delete a file.
| URL | https://api.telecomx.dk/file/ID | |
|---|---|---|
| Method | DELETE | |
| Access level | MANAGER and up, subject to the file's accessLevel. Files of type PORTING, INTERNET and OTHER can only be deleted by RESELLER_ADMIN and up. | |
| Param | ID | Id of the document (24 hex-char string) |
DELETE https://api.telecomx.dk/file/1234567890ABCDEF12345678
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ "success": true }
| Error code | Message | Description |
|---|---|---|
| 422 | id | File id is invalid |
| 404 | id | Not found |
| 403 | type | This file can not be deleted (system file types or missing uploader) |
| 403 | accessLevel | No access to this folder |
| 409 | folder | The folder can not be deleted if not empty |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |