Delete a file.
| URL | https://api.telecomx.dk/file/ID | |
|---|---|---|
| Method | DELETE | |
| Access level | Minimum VIEWER | |
| 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 |
|---|---|---|
| 400 | document | Document id not found in request URI |
| 403 | access_denied | Insufficient access level |
| 403 | access_denied | This file can not be deleted |
| 404 | not_found | Document not found |
| 500 | id | Cannot delete file on <type> server |