MindTouch Developer Center > MindTouch Deki > API Reference > DELETE:archive/files/{fileid}

DELETE:archive/files/{fileid}

Overview

public. Remove a file from the archive (wipe)

Uri Parameters
NameTypeDescription
fileidintidentifies a file by ID
Query Parameters

None

Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Forbidden403Administrator access is required
NotFound404Requested file could not be found in the archive
Ok200Request completed successfully

Message Format

None

Implementation Notes

Removing a file from the archive will cause it to be permanently deleted.

Use GET:archive/files to retrieve a list of files currently in the archive.

Code Samples

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();
Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08