Was this page helpful?

DELETE:files/{fileid}/{filename}

    Overview

    public. Delete file attachment

    Uri Parameters
    NameTypeDescription
    fileidintidentifies a file by ID
    filenamestring"=" followed by a double uri-encoded file name
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    redirectsint?If zero, do not follow page redirects (only applies when {pageid} is present).
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Forbidden403Update access to the page is required
    NotFound404The requested file could not be found
    Ok200The request completed successfully

    Message Format

    None

    Implementation Notes

    This feature works in exactly same way DELETE:/files/{fileid} does. A doubly encoded filename could be appended to the end of the path for sanity check or other purposes. Note that only the {fileid} parameter is of importance when deleting a file. The {filename} parameter is not used at all, and so does not need to match the existing file.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by