Was this page helpful?

DELETE:pages/{pageid}

    Overview

    public. Deletes a page and optionally descendant pages by moving them to the archive

    Uri Parameters
    NameTypeDescription
    pageidstringeither an integer page ID, "home", or "=" followed by a double uri-encoded page title
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    recursivebool?only delete page or delete page and descendants. Default: false
    redirectsint?If zero, do not follow page redirects.
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Forbidden403Update/delete access to the page is required
    NotFound404Requested page could not be found
    Ok200Request completed successfully

    Message Format

    Output:

    <deletedpages count="{int}">
        <page id="{int}" href="{uri}">
            <title>{text}</title> 
            <path>{text}</path> 
        </page>
        ...
    </deletedpages>

    Implementation Notes

    When a page is deleted, the page and all files on it are moved into the archive.  A page is never permanently deleted; it will remain in the archive until it is restored (POST:archive/pages/{pageid}/restore).  While a page is in the archive, it cannot be modified.

    If the recursive=true query parameter is specified, the page and all its descendants will be deleted.  Otherwise, if the page has descendants, a placeholder parent page will be created for them.

    Use GET:pages to retrieve a list of existing pages.

    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