Remove a file from the archive (wipe)
Name | Type | Description |
fileid | int | identifies a file by ID |
Name | Type | Description |
authenticate | bool? | Force authentication for request (default: false) |
Name | Value | Description |
OK | 200 | Request completed successfully |
Bad Request | 400 | Invalid input parameter or request body |
Forbidden | 403 | Administrator access is required |
Not Found | 404 | Requested file could not be found in the archive |
None
Removing a file from the archive will cause it to be permanently deleted.
Use archive/files (GET) to retrieve a list of files currently in the archive.
The following code example removes file with ID 456 from the archive.
Plug p = Plug.New("http://deki-hayes/@api/deki"); p.At("users", "authenticate").WithCredentials("admin", "password").Get(); p.At("archive", "files", "456").Delete();
The following command permanently deletes a file (file.archive ID = 1)
curl -u admin:password -X DELETE -i http://mindtouch.address/@api/deki/archive/files/1